Reinstalling a Rails app on a new server. Part of the app can fork in one of two directions based on the button the user selects. This part isn\'t working, and when I look at
Just add name: "commit", value: "Save"to your form submit button:
name: "commit", value: "Save"
form_for @object do |f| ... f.button :submit, "Save", name: "commit", value:"Save" end
and then you will have params[:commit] equals to "Save" in the controller.
params[:commit]
"Save"