On 4/7/07, Thijs van der Vossen <[EMAIL PROTECTED]> wrote:
>
> On Apr 6, 2007, at 9:16, Adam Michela wrote:
> > It would be nice to have a way to use `update_attribute` WITH
> > validations.
>
> Just use update_attributes(name => value)

He's updating an attribute that's either not allowed by
attr_accessible, or it's protected by attr_protected, so a mass
assignment won't work.

What about update_attribute name, value, true ?

-- 
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to