map.resource开发者_运维问答 :account, :controller => "users"
That is, how do I map the resource account to the users controller?
Thanks, Chris
Same as before, as stated there in the RailsGuides. You may want to make your resource plural though (assuming you have several accounts, it makes some sense, but after all it depends on the actual meaning you give it).
Exactly as before but without map.
:
resource :account, :controller => "users"
精彩评论