I have got a rails controller where the edit
action displays a form where all values of the object can be changed. So now when a user accesses /controller/1
I want to do exactly the same as if /controller/1/edit
was visited.
I have to achieve this without modifying or adding a route, nor using a redirect_to
in the controller. Otherwise JQueryMobile would track the redirect in it's history.
I have tried to do this the ruby way by alias :show :edit
but it failed because rails was still searching for show.html.erb
How to do that?