Hi, Looking at AS I see the AS has support for default_scope now. I have a model named Page with acts_as_list. So, I setted the default scope:
default_scope :order => 'position ASC' But looking at generated SQL by AS I see that: Nested: Page Load (17.6ms) SELECT "pages".* FROM "pages" WHERE (((pages.category_id = '1'))) ORDER BY pages."position" ASC, position ASC LIMIT 15 OFFSET 0 Direct: Page Load (3.9ms) SELECT "pages".* FROM "pages" ORDER BY pages."position" ASC, position ASC LIMIT 15 OFFSET 0 Another thing is Rails accepts the order option a symbol value and AS doesn't. This mean: default_scope :order => :position -- Cordialmente, Gabriel Sobrinho Diretor de desenvolvimento Hite - Comunicação Digital e Mídia Interativa http://www.hite.com.br/ +55 31 8775 8378 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
