On 18 November 2011 14:10, gbolahan a. <[email protected]> wrote: > undefined method `model_name' for NilClass:Class > > Extracted source (around line #1): > > 1: <%= form_for(@category) do |f| %> > > this is another error i encounterd while trying to create a new category > in my category model.
If it's a different problem, please start a different thread. (this thread would be a good place for an update on your last problem.... *hint*) > can someone pls help out on this It pretty much tells you all you need to know - @category is most likely nil. -- 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.

