search for: condtit

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

Did you mean: conduit
2008 Apr 04
0
named_scope and ordering
...st feels wrong in the named_scope. I mean I knew exactly where I would be calling that method from, but named scopes can be combined and are very flexible. Especially they do not behave very intuitively when combining two names scopes that include an :order option: # order.rb named_scope :active, :condtitions => ..., :order => ''created_at DESC'' Order.marked.active # ordered by ''name ASC'' according to the first scope ''marked'' So what are the options? # orders_controller.rb def index @marked = Order.marked.find(:all, :order => '...