Dear Hemant,

First thing, please do read routes guide, and preferably a rails book. it
will help you understand things better. But as far your question goes, your
are seeing error because your are running your app in development mode. Try
running it in production mode, and you will see a 404 page (present here:
public/404.html) Customize it as you want.

Lastly, please be patient when you are expecting others to solve your
problems, and yes, Google always help. So use it.

--
Abhinav
http://twitter.com/abhinav



On Wed, Sep 2, 2009 at 4:43 PM, Hemant Bhargava <
[email protected]> wrote:

>
> 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 .. :)
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to