I’m a newbie to Ruby on Rails and I have what I think is a fairly simple
I’m developing an application which lists Enterprise Services. Each
Service has a User (actually a contact person) which I display with a
link to the Users show view.
I got this working from the Services List screen as follows:
My problem is that I cannot figure out the syntax to get the back link
on the Users show screen working.
My users_controller.rb has this:
last_controller = @params[‘lastcontroller’]
last_action = @params[‘lastaction’]
@user = User.find(@params['id'])
I tried variations of this in my show.rhtml and got errors.
<%= link_to ‘Back’, :controller => lastcontroller, :action => lastaction
Any suggestions would be greatly appreciated.