On Martes, 20 de Septiembre de 2011 12:56:23 slava escribió:
> ran rspec and see a longer backtrace for this error

Thanks, this backtrace is better.
What associations have you defined in that model?
Is there some through association?

Can you try removing them from search?
config.search.columns.exclude :through_association_name

I need that to find the problem


> 
> DEPRECATION WARNING: class_inheritable_attribute is deprecated, please
> use class_attribute method instead. Notice their behavior are slightly
> different, so refer to class_attribute documentation first. (called
> from <class:Form> at /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/
> gems/active_scaffold-0ce03559d49f/lib/active_scaffold/config/form.rb:
> 17)
> DEPRECATION WARNING: class_inheritable_attribute is deprecated, please
> use class_attribute method instead. Notice their behavior are slightly
> different, so refer to class_attribute documentation first. (called
> from <class:Form> at /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/
> gems/active_scaffold-0ce03559d49f/lib/active_scaffold/config/form.rb:
> 17)
> /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/
> active_support/whiny_nil.rb:48:in `method_missing': undefined method
> `klass' for nil:NilClass (NoMethodError)
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:391:in `block in source_reflection'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:391:in `collect'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:391:in `source_reflection'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:538:in `derive_class_name'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:128:in `class_name'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.0/
> lib/active_record/reflection.rb:173:in `klass'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> column.rb:367:in `initialize_search_sql'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> column.rb:181:in `search_sql'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> column.rb:185:in `searchable?'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/config/search.rb:
> 45:in `block in columns'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> columns.rb:62:in `block in each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> columns.rb:62:in `each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> columns.rb:62:in `each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/config/search.rb:
> 45:in `collect'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/config/search.rb:
> 45:in `columns'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/config/core.rb:142:in
> `block in _load_action_columns'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> actions.rb:20:in `block in each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> actions.rb:20:in `each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/data_structures/
> actions.rb:20:in `each'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/config/core.rb:139:in
> `_load_action_columns'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold.rb:178:in
> `active_scaffold'
>       from /home/slava/.rvm/gems/ruby-1.9.2-p290/bundler/gems/
> active_scaffold-0ce03559d49f/lib/active_scaffold/bridges/cancan/
> cancan_bridge.rb:14:in `active_scaffold_with_cancan'
>       from /home/slava/dev/projects/bitcoin-derivatives/app/controllers/
> order_books_controller.rb:2:in `<class:OrderBooksController>'
>       from /home/slava/dev/projects/bitcoin-derivatives/app/controllers/
> order_books_controller.rb:1:in `<top (required)>'

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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.

Reply via email to