Displaying 1 result from an estimated 1 matches for "servicemail".
Did you mean:
servicemain
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
...o 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''
The parameters are ok.
Rails seems to complain about the each method in the model:
class Servicemail
include ActiveModel::Validations
i...