undefined method `locales_for_column and translatable_columns
meetme2meat opened this issue · 1 comments
meetme2meat commented
It seem that the method mention is resulting in undefined method
<% translatable_columns.each do |column| %>
<div class="field">
<%= f.label "#{column}_#{I18n.locale}" %><br />
<%= f.text_field "#{column}_#{I18n.locale}" %>
</div>
<%end%>
<% locales_for_column(:name) do |locale| %>
<p>
<%= form.label "name_#{locale}" %>
<%= form.text_field "name_#{locale}" %>
</p>
<% end %>
Any idea why i'm using on app stack on rails 3.2.1 and ruby-1.9.2
henrik commented
Sorry I didn't reply until now. Didn't get a notification mail for some reason.
We had bad documentation for that code. Sorry! It should be YourModel.locales_for_column(:name).each
. Similarly for translatable_columns
.