Hi
Thanks for the reply I did it like
arr = Person.find(:all,:select => "first_name,first_name||last_name as
full_name")
May I ask one more question related to this ? Here in arr for each
element i get the methods like
first_name
first_name=
first_name?
But I can't see any such like
full_name
full_name= etc But I can access it like arr.first.full_name
Why this?
--
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
-~----------~----~----~----~------~----~------~--~---