On 9 Sep 2008, at 18:25, Shandy Nantz wrote:

>
> @user."#{attribute_name}"
>
> However, that last bit of code doesn't work. Is there a way to do  
> what I
> am trying to do, that is, use dot notion on an object to update a  
> field
> whose value is being passed into the method? Thanks in advance,
>

You can use send to call methods by name.

Fred
> -S
> -- 
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to