Displaying 1 result from an estimated 1 matches for "translationscontroller".
Did you mean:
transactionscontroller
2011 May 27
4
undefined method `model_name' for NilClass:Class in a form_for
...ss: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 in advance!
ps: Sorry for my bad english :)
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...