jhaagmans wrote:
> Why won't model.update_attributes(values) work?
It will give the following error:
undefined method `update_attributes' for #<Class:0x902444c>
values is a hash
As an example, The first field in the table is rank, so values[field] is
values[:rank] OR
{:compiled_on=>"2009-09-04", :rank=>"1"}:Hash
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---