My question is fairly simple, in an app I'm building, there is no need to show a user's account as a separate action from editing a user's account. That is, instead of
URL | HTTP Verb | Action ============================================ /account/new | GET | new /account/edit | GET | edit /account | POST | update /account | PUT | create
I'm looking more for:
URL | HTTP Verb | Action ============================================ /account/new | GET | new /account | GET | edit /account | PUT | update /account | POST | create
Right now, I have this in my routes file:
map.resource :account, :controller => "users", :except => [:show, :destroy]
which gets me very close, but how can I reroute the GET at the root level to give me the edit
action instead of having to specify /edit
in the URL?