Custom Form Submit Button Text – Ruby on Rails

Just a quick post on how to set the text of a form submit button. By default, the tag will appear as follows:

<%= f.submit %>

In order to change the text all you have to do is the following, where ‘Set Location’ is your new text:

<%= f.submit 'Set Location' %>

Good Luck!

Leave a Reply