On 9/12/07, Shandy Nantz
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Does anyone know anything about:
>
> update_attribute_with_validation_skipping(name, value)
>
> I have read the documention, but, I must say, as much as I love ruby and
> rails, their documention lacks a lot, especially in the areas of
> examples and good, sound explanations of what methods do and how the
> function. The above method is a good example of this. What does the
> parameter ''name'' supposed to be? Is it the name of a
method?, the name
> of an attribute for the model?, the name of a column in the database? I
> have tried many permutations with no luck.
>
> @user.update_attribute_with_validation_skipping( @user.d_attention,
> @user.first + " " + @user.last)
>
> This was my latest try. Thanks for any help,
>
That''s not really a public method, it''s there as a side effect
of the
way rails wraps existing methods with new behavior using alias_method
or alias_method_chain. You should be using #update_attribute:
http://rails.rubyonrails.org/classes/ActiveRecord/Base.html#M001043
--
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: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---