From: Dave Aronson Date: 2012-01-14T04:49:27+09:00 Subject: Re: undefined method `[]=' for nil:NilClass On Fri, Jan 13, 2012 at 13:17, thomas carlier wrote: > /file2.rb:114:in `title=': undefined method `[]=' for nil:NilClass > (NoMethodError) That's trying to tell you that at line 114 in file2.rb, you're assinging to a subscrip of something (i.e., trying to set an element in it by using square brackets), but that something is nil. Probably it's somewhere where you think you have an array or a hash. If line 114 is where you do "@form[real] = value" then that probably means that @form is nil. Take a look at the code that's supposed to set @form (and if that's not a Rails controller, possibly also the code that's supposed to call that code). Then if you can't understand why it's wrong, put it somewhere we can get to, post a link, and we'll try to help you figure it out. -Dave -- Dave Aronson, President, Dave Aronson Software Engineering and Training Ruby on Rails Freelancing (Northern Virginia, Washington DC, or Remote) DaveAronson.com, Codosaur.us, Dare2XL.com, & RecruitingRants.com (NEW!) Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (me)