Hello everyone, I am developing my application and I created a scaffold called listas, but when I acess /listas/new I get this error message: NoMethodError in Listas#new Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb where line #15 raised: undefined method `deep_symbolize_keys'' for nil:NilClass Extracted source (around line #15): 12: <% end %> 13: 14: <div class="field"> 15: <%= f.label :nome %><br /> 16: <%= f.text_field :nome %> 17: </div> 18: <div class="field"> Trace of template inclusion: app/views/listas/new.html.erb I am using Rails 3RC and Ruby 1.9.2-rc2. This error is very strange to me because I did just create the scaffold via "% rails g scaffold" and then this error appeared. Do you know why? Thanks, Rodrigo Alves Vieira -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Aug 3, 2:14 pm, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everyone, I am developing my application and I created a > scaffold called listas, but when I acess /listas/new I get this error > message: > > NoMethodError in Listas#new > > Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb > where line #15 raised: > > undefined method `deep_symbolize_keys'' for nil:NilClass > Extracted source (around line #15): > > 12: <% end %> > 13: > 14: <div class="field"> > 15: <%= f.label :nome %><br /> > 16: <%= f.text_field :nome %> > 17: </div> > 18: <div class="field"> > Trace of template inclusion: app/views/listas/new.html.erb > > I am using Rails 3RC and Ruby 1.9.2-rc2. This error is very strange to > me because I did just create the scaffold via "% rails g scaffold" and > then this error appeared. Do you know why?Did you migrate the database? Jeff purpleworkshops.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Cesar Sanz
2010-Aug-03 23:00 UTC
Re: Re: Strange error message when rendering the scaffold form
Stop your server and run it again -original message- Subject: [Rails] Re: Strange error message when rendering the scaffold form From: Jeff <cohen.jeff-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Date: 08/03/2010 14:10 On Aug 3, 2:14 pm, rodrigo3n <rodrig...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello everyone, I am developing my application and I created a > scaffold called listas, but when I acess /listas/new I get this error > message: > > NoMethodError in Listas#new > > Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb > where line #15 raised: > > undefined method `deep_symbolize_keys'' for nil:NilClass > Extracted source (around line #15): > > 12: <% end %> > 13: > 14: <div class="field"> > 15: <%= f.label :nome %><br /> > 16: <%= f.text_field :nome %> > 17: </div> > 18: <div class="field"> > Trace of template inclusion: app/views/listas/new.html.erb > > I am using Rails 3RC and Ruby 1.9.2-rc2. This error is very strange to > me because I did just create the scaffold via "% rails g scaffold" and > then this error appeared. Do you know why?Did you migrate the database? Jeff purpleworkshops.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.