Rails is not passing the “commit” button parameter

前端 未结 5 934
醉梦人生
醉梦人生 2021-02-08 05:27

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

5条回答
  •  囚心锁ツ
    2021-02-08 06:03

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

    The resulting html should be:

    
                                                            
提交回复
热议问题