Luca Roma wrote:
> I have wrote an example:
> 
> example=Example.find(:all,:joins=>"(select id,"hello" as hello_name from
> examples2) as examples3 where examples3.id=examples.id")
> 
> I want get the attribute hello_name that not exits in db.
> example[0].hello_word not works
> example[0].example3.hello_name not works

Try example[0][:hello_word]

-- 
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to