My requirement is to maintain historical data, so basically each
update creates a new record rather than updating the current record.
In order to do this, I fetch the the latest record in the "edit"
action and when the form is submitted I am trying to
redirect_to :action => "create" in the update action.
But for some reason instead it gets redirected to the index action
instead. When I debug, I can see that the form gets submitted to the
"udpate" action but after the redirect_to line, instead of going into
the create action it tries to find some default_renderer..
def update
redirect_to :action => "create"
end
Am I doing this right?
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.