instance_variable_set(@u + ser, User.find(:first))

On May 15, 1:27 pm, Tom Ha <[email protected]> wrote:
> 1 question back, though:
>
> What if need to end up having...
>
>   @user = User.find(:first)
>
> ...based on a case like this:
>
>   @u = '@u'
>   ser = 'ser'
>
> Is there something as "objectize"? :-)
>
> How would the following need to be corrected?
>
>   (@u+ser).objectize = User.find(:first)
>
> Thanks for your help!
> Tom
> --
> Posted viahttp://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