search for: updatecust

Displaying 1 result from an estimated 1 matches for "updatecust".

Did you mean: updatecount
2009 Jan 15
4
HABTM and Check Boxes (Yet Another thread on this)....
...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'') if @customer.save flash[:notice] = ''Customer was successfully updated.'' redirect_t...