map.resources, :as => root?
Posted
by Newy
on Stack Overflow
See other posts from Stack Overflow
or by Newy
Published on 2010-06-01T17:59:53Z
Indexed on
2010/06/01
18:03 UTC
Read the original article
Hit count: 147
ruby-on-rails
I'd like to map my Users to root - so '/:id'. I do the following now
map.connect ':id', :controller => 'users', :action => 'show'
... but I'd also like the links that are generated by Rails to have this format. Can I do a map.resources ... :as => :root or something similar?
© Stack Overflow or respective owner