[Rails] Re: Routing every request to same action

2009-03-31 Thread Umair Ejaz
Thank you s mcuh!!!thats what i was looking for! thanks again -- 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 em

[Rails] Re: Routing every request to same action

2009-03-30 Thread Umair Ejaz
Thanks dear this will work fine if I write before_filter :route_all_to_somewhere in start of my all controllers but if the controller doesnt exist, means he write locahost:3000/rac and there is not 'rac' controller then how can I redirect this request towards my desired action...It willl simply

[Rails] Re: Routing every request to same action

2009-03-30 Thread Umair Ejaz
Please let me know if any one know how to do this -- 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 rubyonrai

[Rails] Routing every request to same action

2009-03-30 Thread Umair Ejaz
Hi, I have some problem, I want to route every request from URL to an action in my one controller. Like if I enter localhost:3000/rac .Here it will take the 'rac' as a controller name and then route it to the 'index' action of the 'rac' controller. But what I want is that it should redirect to