On 10/25/06, Horst Herb
<subscriptions-p8gy+/RydDesTnJN9+BGXg@public.gmane.org>
wrote:>
> Another newbie question:
> I have a browser based app in RoR where I don''t want to allow any
actions via
> URL - meaning regardless what URL is typed in (after the server URL part of
> course), the same page is shown.
>
> Can I do that with the RoR router? If so, how?
>
> Horst
>
> >
>
Horst,
Off the top of my head this should work:
# routes.rb
ActionController::Routing::Routes.draw do |map|
map.connect ''*'', :controller =>
''my_catch_all_controller'', :action
=> ''handle_it''
end
Zack
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---