hello you can try config.columns=[....] 2008/10/1 Blackshack <[EMAIL PROTECTED]>
> > Hello, > i run Rails 2.1.1 with activescaffold. (i test with many version of > active_scaffold) and i have always the same problem. When i try to > configure active scaffold by ActiveScaffold.set_defaults, i can't > access to many methods/properties, and i have the error ie. : > (in the controller > class Admin::UsersController < Admin::ApplicationController > active_scaffold > ActiveScaffold.Set_defaults do |config| > config.ignore_columns.add [:salt] > list.columns = [...] > end > end > NoMethodError (undefined method `columns=' for > ActiveScaffold::Config::List:Class): > > In fact, i can't access all possibilities of config for List (or > subform, etc.) . For config global, i have only access to > ignore_columns ... > > if i try to use this form: > active_scaffold :users do |config| > config.ignore_columns.add [:salt] > end > I have errors directly in config with this message: > NoMethodError (undefined method `ignore_columns' for > Admin::UsersController:Class): > ... > > If i remove all parties that throw an exception, i don't have errors, > so active_scaffold is work, but not exactly with the form i want..... > > If someone have a solution... > > Best regards, > Blackshack > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
