Displaying 1 result from an estimated 1 matches for "article4000".
2006 Jul 14
1
Appending something to a Rails route?
.../page/news/edit
should redirect to the URL http://localhost:3000/login
I''ve accomplished this by setting up a route like:
map.connect ''page/:name/edit'', :controller => "login"
But this fails in the case of the following URL:
http://localhost:3000/page/news/article4000/edit
How can I set up a route that just detects if the URL starts with
/page and ends with /edit?
I''ve tried using route globbing, (by using an asterix symbol) but I
don''t really understand its use. I put it like:
map.connect ''page/*/edit'', :controller => &qu...