Hi Michael,

NoMethodError was a bug, which I ve fixed.

I m not sure if sortable will work for subform records, I ve never
tried it to be honest.

Please open an issue concerning this.

--
Volker

On Feb 6, 6:49 pm, Michael Latta <[email protected]> wrote:
> When I try to visit the controller directly for the items configured as 
> sortable I get the following:
>
> NoMethodError in App page itemsController#index
>
> undefined method `except' for #<Class:0x1059f8b60>
> Rails.root: /Users/lattam/Projects/vipassana
>
> Application Trace | Framework Trace | Full Trace
> activerecord (3.0.0) lib/active_record/base.rb:1016:in `method_missing'
> vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:295:in 
> `append_to_query'
> activesupport (3.0.0) lib/active_support/dependencies.rb:239:in `inject'
> vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:294:in `each'
> vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:294:in `inject'
> vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:294:in 
> `append_to_query'
> vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:286:in 
> `find_page'
> vendor/plugins/active_scaffold/lib/active_scaffold/paginator.rb:66:in `call'
> vendor/plugins/active_scaffold/lib/active_scaffold/paginator.rb:66:in `page'
> vendor/plugins/active_scaffold/lib/active_scaffold/paginator.rb:93:in `call'
> vendor/plugins/active_scaffold/lib/active_scaffold/paginator.rb:93:in `items'
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb:79:in 
> `do_list'
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb:19:in 
> `list'
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb:9:in 
> `index'
> actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in 
> `send_action'
> actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in 
> `send_action'
>
> On Feb 6, 2011, at 10:36 AM, Michael Latta wrote:
>
> > Browser restart resolved that.  However now the subforms are appearing 
> > without the "sortable" column and failing validation because they are not 
> > being filled in either.  What should be displayed to replace the configured 
> > sortable column?  Should there be a drag box of some type?
>
> > Michael
>
> > On Feb 6, 2011, at 10:31 AM, Michael Latta wrote:
>
> >> Updating to latest active_scaffold resolved that issue.  When I attempt to 
> >> edit a record that has the sortable items as association targets the 
> >> controller renders them but no record appears in the place of the record 
> >> being edited.  More digging required.
>
> >> Michael
>
> >> On Feb 6, 2011, at 10:19 AM, Michael Latta wrote:
>
> >>> A little more digging and there appears to be an 
> >>> "active_scaffold_autoload_subdir" method that has only 2 arguments while 
> >>> the plugin is calling "autoload_subdir" with 3 arguments.  I will check 
> >>> if my AS is out of date relative to the sortable plugin.
>
> >>> Michael
>
> >>> On Feb 6, 2011, at 10:07 AM, Michael Latta wrote:
>
> >>>> Is the vhochstein sortable fork working in Rails 3?  I just tried to 
> >>>> install it and get the following:
>
> >>>> Michael
>
> >>>> MBP:vipassana lattam$ rails s
> >>>> => Booting WEBrick
> >>>> => Rails 3.0.0 application starting in development onhttp://0.0.0.0:3000
> >>>> => Call with -d to detach
> >>>> => Ctrl-C to shutdown server
> >>>> Exiting
> >>>> /Users/lattam/Projects/vipassana/vendor/plugins/active_scaffold_sortable/lib/active_scaffold_sortable.rb:14:
> >>>>  undefined method `autoload_subdir' for ActiveScaffold:Module 
> >>>> (NoMethodError)
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in
> >>>>  `load_dependency'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in
> >>>>  `new_constants_in'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in
> >>>>  `load_dependency'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from 
> >>>> /Users/lattam/Projects/vipassana/vendor/plugins/active_scaffold_sortable/init.rb:1
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/plugin.rb:81
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in
> >>>>  `instance_exec'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in
> >>>>  `run'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:50:in
> >>>>  `run_initializers'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in
> >>>>  `each'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in
> >>>>  `run_initializers'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:134:in
> >>>>  `initialize!'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in
> >>>>  `send'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in
> >>>>  `method_missing'
> >>>>        from /Users/lattam/Projects/vipassana/config/environment.rb:5
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in
> >>>>  `load_dependency'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in
> >>>>  `new_constants_in'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in
> >>>>  `load_dependency'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in
> >>>>  `require'
> >>>>        from /Users/lattam/Projects/vipassana/config.ru:3
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in 
> >>>> `instance_eval'
> >>>>        from 
> >>>> /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in 
> >>>> `initialize'
> >>>>        from /Users/lattam/Projects/vipassana/config.ru:1:in `new'
> >>>>        from /Users/lattam/Projects/vipassana/config.ru:1
> >>>> MBP:vipassana lattam$
>
> >>>> --
> >>>> 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 
> >>>> athttp://groups.google.com/group/activescaffold?hl=en.
>
> >>> --
> >>> 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 
> >>> athttp://groups.google.com/group/activescaffold?hl=en.
>
> >> --
> >> 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 
> >> athttp://groups.google.com/group/activescaffold?hl=en.
>
> > --
> > 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 
> > athttp://groups.google.com/group/activescaffold?hl=en.

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