Displaying 1 result from an estimated 1 matches for "update_check_list".
2009 Jan 15
4
HABTM and Check Boxes (Yet Another thread on this)....
...ss 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_to :action => ''customers''
else
flash[:notice] = ''Something went wrong,please review y...