Displaying 1 result from an estimated 1 matches for "ordered_desc".
2007 Sep 20
1
undefined method `request' for "products":String ?
...html46erb''
app/controllers/admin/base_controller.rb:25:in `index''
app/controllers/admin/base_controller.rb:24:in `index''
---
helper
def link_to_orderable(name, order, default = false)
case params[:order]
when default && nil
className = "ordered_desc"
when order
className = "ordered"
order = "#{order} desc"
when "#{order} desc"
className = "ordered_desc"
end
options = params.merge(:order => order, :page => nil )
>> link_to(name, options, :...