简体   繁体   中英

Formtastic translation missing: en.formtastic.submit?

<%= semantic_form_for :index, :method => "post" do |f| %>

<% f.inputs do %> <%= f.autocompleted_input :category_post, :url => home_autocomplete_category_name_path %> <%= f.autocompleted_input :place_post, :url => home_autocomplete_town_name_path %> <%= f.buttons %> <% end %> <% end %>

Gives me this error:

<input class="submit" id="index_submit" name="commit" type="submit" value="translation missing: en.formtastic.submit">

Any ideas? I thought it did not rely on the yml file and had default values elsewhere, if not do I have to add values to en.yml and if so how?

Thanks!

Just so anyone wondering about this in the future wonder how to solve it, simply go into the en.yml file and put the value in under the route desribed so this example simply needed:

en:
  formtastic:
    submit: "search"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM