Displaying 1 result from an estimated 1 matches for "scontact_control".
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
...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
include ActiveModel::Conversion
extend ActiveModel::Naming
att...