On 27 May 2011 13:21, Louis Wrobel <li...@ruby-forum.com> wrote:
> undefined method `model_name' for NilClass:Class
>
> 30: <%= form_for @new_trad do |f| %>

This means that the @new_trad object is probably nil.

>  def new
>    @new_trad = Translations.new
>  end

Just a guess, but you might want:
   @new_trad = Translation.new

If that's not it, I'd recommend checking out the guides on debugging
and put a breakpoint in the view.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to