Rails Association Question (addendum)...

Posted by keruilin on Stack Overflow See other posts from Stack Overflow or by keruilin
Published on 2010-03-24T01:30:31Z Indexed on 2010/03/24 1:33 UTC
Read the original article Hit count: 328

Filed under:
|

My original question and accepted solution was posted here: http://stackoverflow.com/questions/2483640/rails-association-question. Check that out first.

My follow-up question is this:

I want to return an object that has both the user attributes and the race attributes. That way I can access, for example, the user's name and the fastest_time. How can this be accomplished? I've tried several approaches, but none I've been satisfied with.

© Stack Overflow or respective owner

Related posts about rails

Related posts about associations