deploying to heroku

Hi, I’m not sure why my app on heroku is crashing.

I’ve added a requests controller, and everything works locally using sqlite.

here’s my log from heroku…

2017-05-27T13:07:36.250694+00:00 app[web.1]: [1m[35mUser Load (1.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 11]]
2017-05-27T13:07:36.253544+00:00 app[web.1]: Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.7ms)
2017-05-27T13:07:36.254583+00:00 app[web.1]:
2017-05-27T13:07:36.254585+00:00 app[web.1]: NameError (uninitialized constant RequestsController::Request):
2017-05-27T13:07:36.254586+00:00 app[web.1]: app/controllers/requests_controller.rb:12:in `index'
2017-05-27T13:07:36.254586+00:00 app[web.1]:

What's causing this? any suggestions?

Is your controller class name named properly and have you committed this controller to version control before deploying to Herkoku?

Yes, I believe so.

"works" in the sense that you have tests for this part of your code?

That aside, having a "requests" controller sounds like a phenomenally
bad idea -- "request" and "response" have very specific meanings in
any web application, and in the case of Rails request() is an instance
method of ActionController::Base.

I would strongly recommend changing the name of that controller :slight_smile:

Good call on this one, request and response are almost reserved naming conventions in rails.

oh, I don’t know what happened. But I pushed it up to github again and deployed it on heroku and it works . now.
Must have been a few files that were not included in the original push.