Hi John,
John Butler wrote:
If i have a model called sample and each sample has_many actions. So i have a table called samples filled with different samples and a table called actions filled with different actions. I used both has_many through and habtm to get this to work with join tables.
Based on what you've said, all you need is a simple has_many / belongs_to relationship between the two. You don't need a join table.
Now there is a field called additional_comments that is associated with actions so if you could imagine a form with a number of actions and then one big textfield called additional comments to add some text. where do i put this field additional_comments, it doesnt really belong in the samples table because its additional comments about the actions.
Again, based on what you've said, all you need to do is add the field to the actions table.
hth, Bill