have three table lists,products,items
class List < ActiveRecord::Base
has_many :items has_many :products, :through => :item end
class Product < ActiveRecord::Base
has_many :items has_many :lists, :through => :item end
item table (id,list_id,product_id,quantity)

for example:   lists table  : id=1,total_price=20

products table : id=1,name="apple",price=10

items table : id=1,list_id=1,product_id=1,quantity=2

in active_scaffold lists when I click the list show just show me like this:
Show
Name
apple

Price
20.0
but does't have the quantity,

how can get the show like this

Name
apple 2

Price
20.0
anyway can  show the product name and the quantity

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to