Displaying 1 result from an estimated 1 matches for "up_product_url".
2006 Jul 23
2
REST controller with up and down for model that acts_as_list
Hi,
I have the following models
class Department < ActiveRecord::Base
has_many :products
end
class Product < ActiveRecord::Base
belongs_to :department
acts_as_list :scope => :department_id''
end
When I look at a list of products for a particular department I have
up and down buttons to re-order the products. Currently my controller
is something like this
class