2009/9/2 Hemant Bhargava <[email protected]>: > > I have few actions (Suppose a, b and c) in my controller (Suppose > cont).. > When i type them in url like http://localhost/cont/a or b or c its all > Ok .. > But when i type http://localhost/cont/d or e .. Giving error .. > What to change in routes.rb to tackle.. I want to show an landing page > in case of buggy URL .. > Also if i type http://localhost/cont/a123 then also it should take me to > the landing page(Buggy Url page) > > before_filter is for something else .. rit .. > May be an beginner question but do now know how to tackle .. :)
If I understand the question correctly you want to go to a particular page when the user enters an invalid controller or action? When running in production mode this, by default, displays the page public/404.html. You can make this page display what you like. Is that what you are looking for? Colin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

