I got this error: NoMethodError in PictureController#new You have a nil object when you didn't expect it! The error occured while evaluating nil.uploaded_file= and the line code is here: @picture.uploaded_file = @params['picture_file'] -- Posted via http://www.ruby-forum.com/.