Displaying 1 result from an estimated 1 matches for "checkboxselect".
Did you mean:
checkbox_select
2009 Jan 15
4
HABTM and Check Boxes (Yet Another thread on this)....
...lugin/vendor
version.
the category.rb stays in the myapp/app/models , while the order_user.rb
stays in myapp/vendor/plugins/substruct/app/models .
this is my models
class Category < ActiveRecord::Base
has_and_belongs_to_many :order_users
end
class OrderUser < ActiveRecord::Base
include CheckboxSelectable
has_and_belongs_to_many :categories
#many other things down below
end
this are my controller
def updateCust
@customer = OrderUser.find(params[:id])
@customer.update_attributes(params[:customer])
@customer.update_check_list(params, ''Category'')...