# Active scaffold with attibute in join table

**URL:** <https://www.ruby-forum.com/t/active-scaffold-with-attibute-in-join-table/139044>\
**Category:** Rails\
**Created:** [May 30, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/active-scaffold-with-attibute-in-join-table/139044 "2008-05-30T12:04:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![menestra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/fbc32d/32.png) [@menestra](https://www.ruby-forum.com/u/menestra)\
**Post date:** [May 30, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/active-scaffold-with-attibute-in-join-table/139044/1 "2008-05-30T12:04:35Z")

</div>

hi,  
I’ve a many to many relationship:

class Operation \< ActiveRecord::Base  
has\_and\_belongs\_to\_many :roles  
end

class Role \< ActiveRecord::Base  
has\_and\_belongs\_to\_many :operations  
end

Roles table contains the users roles and operations table the operations  
of the application.

I’m using active scaffold and i’ve created the operations\_rules join  
table with those attribute:

operation\_id, rule\_id, create (Permits to create)

how can I tell Active scaffold to add the create attibute in the subform  
(on the operation controller)? and how save this attribute on the join  
table?

Thanks.
