I would like to handle a missing action in one of my controllers in a default action. Now the default behavior is to throw an error. I would like to be able to have a default action in that controller that is called and passed the name of the action requested so I may do something with it. Now I know you can change the whole missing action page which is not what I am looking to do. Any incite on this would be great, if its not possible please let me know.
Thanks
Depending on how much of an exception to your normal actions this is, a change in routing may make more sense:
If you have some normal actions in that controller, define a route for them before this catch-all route to have them handled normally.
If you really want to futz around with the action handling in the controller itself, you should be able to do so in
beforeFilter:Something like that at least, that’s just a quick untested idea.