search for: szolg

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

Did you mean: lszolg
2013 Jun 23
1
Contact form - NoMethodError (undefined method `each' for nil:NilClass)
.../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 attr_accessor :name, :email, :subject, :body, :szolg validates :name, :email, :subject, :body, :presence => true validates :email, :format => { :with => %r{.+@.+\..+} }, :allow_blank => true def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end def persiste...