Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails change submit button text

Any way to change the default text for a submit button?

For example, the following submit button for the user model and the update action will have a button value of Update User

<%= f.submit %>

Is there something I can add to the tag to make it, Save, for example?

Or am I going to have to do this with jQuery?

like image 822
stewart715 Avatar asked Apr 22 '11 18:04

stewart715


1 Answers

Should be:

<%= f.submit "Save" %> 
like image 89
Zepplock Avatar answered Oct 07 '22 06:10

Zepplock