I had tried that already. My _form.html.erb actually starts with
<%= form_for(@user_comment) do |user_comment| %>
<% if @user_comment.errors.any? %>
<div id="errorExplanation">
<h2><%= pluralize(@user_comment.errors.count, "error") %>
prohibited this user comment from being saved:</h2>
and I get the same results:
Showing c:/Gpsappm/app/views/user_comments/_form.html.erb where line #1
raised:
undefined method `model_name' for NilClass:Class
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.