i have listed my _form.html.erb file below what i would like to do is change the text on the submit button i know how to do it in html but not shure how to do it in Rails 3<
You can use:
<%= f.submit 'Name of the submit button' %>
For questions like this, consider using the available docs either at
Sometimes, a google search like the one below helps:
instead of
<%= f.submit %>
put
<%= f.submit "My Submit Text" %>
I had this problem and I only had to translate the model name this way:
pt-br:
activerecord:
models:
user:
one: "Usuário"
more: "Usuários"
This also would complement @daniel's answer which gave me the hint what was missing. However, I suppose that @daniel's answer is not really necessary as it is already on rails-i18n
Just in case, I was trying with this scenario:
f.submit t('conf.begin') class: 'btn btn-outline btn-success'
But it was not working, the solution was with a comma before the class (it was not obvious at the begining for me):
f.submit t('conf.begin'), class: 'btn btn-outline btn-success'
Cheers