search for: scontactcontroller

Displaying 1 result from an estimated 1 matches for "scontactcontroller".

Did you mean: contactcontroller
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
...ntact form for the contact page which works perfectly using this tutorial: http://matharvard.ca/posts/2011/aug/22/contact-form-in-rails-3/ Now I would like to implement this approach on the service pages, and it works until I push the Submit button, when I get the following error: Processing by ScontactController#create as HTML Completed 500 Internal Server Error in 1ms NoMethodError (undefined method `each'' for nil:NilClass): app/models/servicemail.rb:13:in `initialize'' app/controllers/scontact_controller.rb:9:in `new'' app/controllers/scontact_controller.rb:9:in `create...