nvm,
i already know how to used it..
they just rename the 'map.connect' to 'match'... lol
so we just need to use this code
match 'Person' , :controller= 'people', :action = 'list'
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post
I think my topic title might be wrong due to my bad english..
actually, i try to change the change the url from
http://localhost:3000/people/l http://localhost:3000/people/actionist to
http://localhost:3000/ http://localhost:3000/people/actionsales_contact
and not to set a root for website
if
i also have the same problem..
i use this coding:
match 'pages/:id/show2' = 'pages#show2', as: 'shows'
the result, i can only generate for url or path used.. for example .. %=
link_to 'show2', shows_path(page) %
and the url
i also try to use this:
root to: 'pages#show', as: 'store'
Hi,
if in rails 2.3 we can use this syntax
map.connect ' ', :controller = 'people', :action = 'action'
the result it will simplify from
http://localhost:3000/people/action to http://localhost:3000/
but in rails 3.2, we can't use map.connect right?
i try to use :
match ' people/action ' = '
4 matches
Mail list logo