Ruby on Rails: How to have multiple submit buttons going to different methods (maybe with with_action?) [duplicate]
The submit button name attribute is passed to the controller as params[:commit].So in your case:
if params[:commit] == "save"end
The submit button name attribute is passed to the controller as params[:commit].So in your case:
if params[:commit] == "save"end