Thanks.  Same results.  So I am also attaching  the
user_comments\new.html.erb file.  "Show" of User should let you create a
new comment.

ActionView::Template::Error (undefined method `model_name' for
NilClass:Class):
    1: <%= form_for(@user_comment) do |user_comment| %>

    2:   <% if @user_comment.errors.any? %>

    3:     <div id="errorExplanation">

    4:       <h2><%= pluralize(@user_comment.errors.count, "error") %>
prohibited this user comment from being saved:</h2>

  app/views/user_comments/_form.html.erb:1:in
`_app_views_user_comments__form_html_erb__805116599_31946496__132227956'
  app/views/user_comments/new.html.erb:3:in
`_app_views_user_comments_new_html_erb__406286635_32110236__1065675980'
  app/controllers/user_comments_controller.rb:15:in `new'

Attachments:
http://www.ruby-forum.com/attachment/5809/show.html.erb
http://www.ruby-forum.com/attachment/5810/new.html.erb
http://www.ruby-forum.com/attachment/5811/_form.html.erb


-- 
Posted via http://www.ruby-forum.com/.

-- 
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