activity.activitytypes.name

On Feb 11, 11:10 am, John Mcleod <[email protected]> wrote:
> if I include ":include => :activity_type", then I get the name.
>
> debug @activities
>
> - !ruby/object:Activity
>   activity_type: &id001 !ruby/object:ActivityType
>     attributes:
>       name: Budgeting
>       created_at: 2010-01-25 14:38:25
>       updated_at: 2010-01-25 14:38:25
>       id: "1"
>     attributes_cache: {}
>
>   attributes:
>     name: Study Mapping & Budget Workup
>     created_at: 2010-01-25 14:44:51
>     updated_at: 2010-01-25 14:44:51
>     activity_type_id: "1"
>     id: "1"
>   attributes_cache: {}
>
> How to display "name"?
>
> John
> --
> 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