From: thomas carlier Date: 2012-01-16T16:28:57+09:00 Subject: Re: undefined method `[]=' for nil:NilClass Thanks for helping Dave The problem was not really in my code. The problem appear when there's a redirection on the website. (.htaccess) When it's the case i lost my data and i'm not on the page i supposed to be. So it's normal that when i seach for @form the result is nil I added some code, to see i there's a redirection on the webpage and it works now -- Posted via http://www.ruby-forum.com/.