My model has two fields that I want in a customer list for an index
page. They are name and second_name. I need a way to combine them in a
collection with their id numbers so the Edit links will work. Sounds
like SQL, but I'm not sure.

maybe something like:
SELECT name, id FROM households and SELECT second_name, id FROM
households

just not sure how to make ONE statement from these two including
both...

Thanks

Bob

-- 
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