My understanding is that "params" is a hash containing the parameters
passed to a controller. So within a method, I should be able to do:
contact = Contact.new( params )
but I get the error "undefined method `action='"
When I use:
contact = Contact.new( :name => params[:name], :address =>
everything is fine. But this of course becomes a problem when I have
many parameters. I thought ActiveRecord's new() would automatically
throw out parameters that weren't part of the data structure. I
suppose I'm missing something obvious, but I can't figure it out.