Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Routing error #15

Closed
sweded opened this Issue Jun 26, 2012 · 4 comments

Comments

Projects
None yet
2 participants

sweded commented Jun 26, 2012

I'm receiving the exception, uninitialized constant ErrorsController (ActionController::RoutingError) on my application's path http://bob.dev/assessments/new. It appears to be the result of the following two lines in my routes.rb.

match '*not_found' => 'errors#handle404'
match "*path" => 'errors#handle404' 
Owner

schneems commented Jun 27, 2012

You need this before those lines mount_sextant if Rails.env.development?

Though likely you need to just restart your app if you already have an errors_controller.rb and it has a ErrorsController in it

@schneems schneems closed this Jun 27, 2012

sweded commented Jun 27, 2012

Yes, I had the previous line included as well. However, I'm not convinced that the purpose and usage of those two lines are well understood. In the meantime, I found rails issue #671 I wasn't previously aware of. Perhaps it would be kind to describe their purpose in the README as they won't work without an ErrorsController.

Owner

schneems commented Jun 27, 2012

Yes, the errors controller lines are just there for example. I'll look into a better explanation in the morning.

Richard Schneeman
http://heroku.com
@schneems

Sent from the road

On Tuesday, June 26, 2012 at 10:41 PM, Gernot Bartels wrote:

Yes, I had the previous line included as well. However, I'm not convinced that the purpose and usage of those two lines. In the meantime, I found rails issue #671 I wasn't previously aware of. Perhaps it would be kind to describe their purpose in the README as they won't work without an ErrorsController.


Reply to this email directly or view it on GitHub:
#15 (comment)

sweded commented Jun 27, 2012

Thank you. This caused me enough grief to ask a question on StackOverflow before I found my way back to this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment