When an ActionController method that corresponds to the URL is missing, it throws an ActionNotFound exception and a custom error page is rendered. This is helpful in production. Do you think something similar should happen in FC too?
Yes, I reckon so.
Just remembered about this and even created a patch, but then realized that it's not an issue if available actions are specified via only and except options on resources because in that case rails already returns 404.
Yeah, proper use of only and except prevents this, but I still think it would be nice to return a 404 by default rather than the "constant not found" error we get at the moment.
Would be good to see the patch if you've written it anyway!
Cool, attached the patch.
Raise FocusedController::NotFound on missing action class. Also make …
…rails return 404 on such error
Sweet, patch looks good but the build seems to be broken: https://travis-ci.org/jonleighton/focused_controller/builds/5760415 any ideas?
There is no config parameters for rescue_responses or rescue_template…
…s in rails < 3.2
It's not necessary to run rails command with bundle exec
Make template name a string