El Monday 03 November 2008 16:00:37 George Gensure escribió:
> To address column ordering:
>
> This was changed to column 'weight'.  I threw in the following at the
> end of def columns=(val) in lib/config/core.rb
>
> val.each_with_index { |c, i| @columns[c.to_sym].weight = i }
>
> This recreates the prior behavior of being able to specify column
> ordering via config.columns = [ :one, :two, :three, :four ]

You should be able to set columns order using config.<action>.columns = [...]
I'm not sure about config.columns.
The weight were added to set order without explicitly set which columns are 
shown.
I usually use all columns in create/update with some exceptions which I set 
with config.<action>.columns.exclude, and then I change the default order 
using weight. For list action I use config.list.actions = [...]

>
> -George
>
> On Fri, Oct 31, 2008 at 10:41 AM, Jason Kusar <[EMAIL PROTECTED]> 
wrote:
> > Ok, I just updated to the latest version for the first time in a
> > couple weeks and immediately noticed a huge change that's not in the
> > changelog.  My associated columns in the list view now open the edit
> > form instead of the show view.  How do I change this back?  I can't
> > find anything in the api docs about it.
> >
> > Another change is that, if I don't specifically list out a column
> > order for each of the individual actions, it sorts them all
> > alphabetically.  It used to be that it would stick with the order in
> > config.columns in nothing further was specified.  Can I get this
> > functionality back as well?
> >
> > Thanks,
> > --Jason
>
> 


-- 
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

  • As... Jason Kusar
    • ... Ed W
    • ... George Gensure
      • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
        • ... George Gensure
          • ... sergio
            • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
      • ... Ed W
        • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to