fix model name and user form

This commit is contained in:
manson 2014-05-27 14:13:58 +08:00
parent b64385771a
commit 53ab9e4e9c
2 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
<% @site_in_use_locales.each_with_index do |locale, i| %>
<div class="tab-pane fade <%= ( i == 0 ) ? "active in" : '' %>" id="last_name_<%= locale %>">
<%= f.fields_for :last_name_translations do |f| %>
<%= f.text_field locale, :value => (@member_profile.member_profile.last_name_translations[locale] rescue nil), :placeholder=>"#{t("users.last_name")}" %>
<%= f.text_field locale, :value => (@member_profile.last_name_translations[locale] rescue nil), :placeholder=>"#{t("users.last_name")}" %>
<% end %>
</div>
<% end %>