We currently have a poor-man''s CMS (content management system) where we use method_missing() to redirect_to a stored page in a database. I would like to re-write the url back to the original request. How? Example, 1. User goes to http://www.example.com/home/news 2. However, :controller => ''home'', :action => ''index'' doesn''t exist so we get a method_missing which we trap in app/controller/application.rb. 3. We then ContentPage.find_by_controller_and_action(params[:controller], params[:action]) and 4. redirect_to :controller => ''content_pages'', :action => ''show'', :id => content_page.id This works. However, I would like to rewrite the url from: http://www.example.com/content_pages/show/43 to the original request http://www.example.com/home/news Any advice or ideas? ebeard. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---