Multiple nested attributes of the same type

Hi all,

0 down vote favorite

I have two models - "symbols" and "users". Among other attributes, symbols has "created_by_id" and "updated_by_id" attributes which are id's of users that created/updated a certain symbol entry.

Let's say I want to display the symbols table with their "symbol" attribute and the nested "created by" and "updated by" (user.username) attributes for each symbol entry. Resulting table should look something like this:

symbol created_by updated_by

the answer is to be found here: Active Record Associations — Ruby on Rails Guides

the answer is to be found here: Active Record Associations — Ruby on Rails Guides

Also work right through a good tutorial such as railstutorial.org (which is free to use online). This will show you the basics of Rails.

Colin