Displaying 1 result from an estimated 1 matches for "new_trad".
Did you mean:
new_head
2011 May 27
4
undefined method `model_name' for NilClass:Class in a form_for
Hi! I know that there are other topics about this issue, I read them and
I''m always blocked. Here is the error message:
undefined method `model_name'' for NilClass:Class
Extracted source (around line #30):
27:
28: <h2>Add Translation</h2>
29:
30: <%= form_for @new_trad do |f| %>
31: Locale: <%= f.text_field :locale %>
32: Key : <%= f.text_field :key %>
33: Value : <%= f.text_field :value %>
The new method in TranslationsController:
def new
@new_trad = Translations.new
end
Tell me if other informations are needed.
Thanks i...