Alex Rivera | Logout

Rails is not passing the "commit" button parameter

Asked 2010-01-04T15:11:25.067
13

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 the log I see the values that I gave the form, execept for the commit portion of the params hash. This seems to be why the app isn't working as expected (since there's nothing in params[:commit], but I have no idea why commit would not be passed in; the request is definitely a POST request, and all of the other parameters are there.

Edit
Report

1 Answer

1

Check that your submit input is named commit or it's label will not be sent.

The resulting html should be:

<input type="submit" name="commit" label="...>
answered 2010-01-04T16:31:24.610

Your Answer