Lol. This was two easy.
I pulled the latest from Git, got
the "standard" Argument mismatch as
you were saying. I was going to go in and do the
fix, and noticed that if I just deleted the file-column plugin least
the app will run.

On Nov 23, 8:29 am, Sonar <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Today I've painfully upgraded to Rails 2.2.2 and latest Active
> Scaffold plugin. Now I'm getting the same error when accessing AS
> pages.
> It points me to the file /vendor/plugins/active_scaffold/lib/
> active_scaffold/data_structures/columns.rb:39 with the error "wrong
> number of arguments (2 for 0)".
>
> The code at the specified line seems to be quite clear for me:
>
> args.each { |a| @set << ActiveScaffold::DataStructures::Column.new
> (a.to_sym, @active_record_class) unless find_by_name(a) }
>
> Here I see the call of Column constructor with two parameters. That
> constructor is defined in Column class in the form :
>
> def initialize(name, active_record_class)
>
> So the code pretty much contradicts with what I see in the exception
> message! I just can't understand why Rails expect zero arguments here!
> Moreover, in the console when I type:
>
> >>ActiveScaffold::DataStructures::Column.new
>
> I get an error: "wrong number of arguments (0 for 2)" which is
> ABSOLUTELY correct, but now I'm totally confused!!
>
> Any pointers would be greatly appreciated!
> Thanks,
> Alex
>
> PS. Full stack trace is the following:
>
> Asked for a remote server ? true, ENV["FERRET_USE_LOCAL_INDEX"] is
> nil, looks like we are not the server
> Will use local index.
> using index in /Users/u2/projects/rails/sonart/index/development/model
>   SQL (0.4ms)   SET NAMES 'utf8'
>   SQL (0.1ms)   SET SQL_AUTO_IS_NULL=0
>   Model Columns (1.4ms)   SHOW FIELDS FROM `models`
> default field list: [:nickname, :updated_at, :created_at]
>
> Processing ApplicationController#index (for 127.0.0.1 at 2008-11-23
> 02:18:53) [GET]
>
> ArgumentError (wrong number of arguments (2 for 0)):
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:39:in `initialize'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:39:in `new'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:39:in `add'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:39:in `each'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:39:in `add'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/
> data_structures/columns.rb:27:in `initialize'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
> 102:in `new'
>     /vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:
> 102:in `initialize_without_file_column'
>     /vendor/plugins/active_scaffold/lib/bridges/file_column/lib/
> as_file_column_bridge.rb:11:in `initialize'
>     /vendor/plugins/active_scaffold/lib/active_scaffold.rb:56:in `new'
>     /vendor/plugins/active_scaffold/lib/active_scaffold.rb:56:in
> `active_scaffold'
>     /app/controllers/models_controller.rb:3
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:382:in
> `load_without_new_constant_marking'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:382:in `load_file'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:521:in `new_constants_in'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:381:in `load_file'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:256:in `require_or_load'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:427:in `load_missing_constant'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:77:in `const_missing'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/dependencies.rb:89:in `const_missing'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/inflector.rb:352:in `constantize'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/inflector.rb:351:in `each'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/inflector.rb:351:in `constantize'
>     /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
> active_support/core_ext/string/inflections.rb:162:in `constantize'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/routing/route_set.rb:388:in `recognize'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:182:in `handle_request'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:110:in `dispatch_unlocked'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:123:in `dispatch'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:122:in `synchronize'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:122:in `dispatch'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:132:in `dispatch_cgi'
>     /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
> action_controller/dispatcher.rb:39:in `dispatch'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/request_handler.rb:38:in `process_request'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_request_handler.rb:163:in `main_loop'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/application_spawner.rb:307:in `start_request_handler'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/application_spawner.rb:276:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:165:in `safe_fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:163:in `fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:163:in `safe_fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/application_spawner.rb:274:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:165:in `safe_fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:163:in `fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> utils.rb:163:in `safe_fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/application_spawner.rb:273:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `__send__'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `main_loop'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:168:in `start_synchronously'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:135:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:112:in `fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:112:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/application_spawner.rb:177:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/framework_spawner.rb:270:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/framework_spawner.rb:263:in `synchronize'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/framework_spawner.rb:263:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `__send__'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `main_loop'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:168:in `start_synchronously'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:135:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:112:in `fork'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:112:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> railz/framework_spawner.rb:87:in `start'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> spawn_manager.rb:218:in `spawn_rails_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> spawn_manager.rb:213:in `synchronize'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> spawn_manager.rb:213:in `spawn_rails_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> spawn_manager.rb:122:in `spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> spawn_manager.rb:247:in `handle_spawn_application'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `__send__'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:317:in `main_loop'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/lib/passenger/
> abstract_server.rb:168:in `start_synchronously'
>     /usr/local/lib/ruby/gems/1.8/gems/passenger-2.0.3/bin/passenger-
> spawn-server:46
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to