On Miércoles, 7 de Abril de 2010 21:28:49 scrozier escribió:
> Sergio,
>
> Making progress...now I do get the Add Existing and Create New
> actions--perfect!
>
> Create New works as expected. However, both Add Existing and Remove
> get errors. Here's the Remove error:
>
> Processing Admin::DiplomasController#destroy_existing (for ::1 at
> 2010-04-07 14:24:48) [DELETE]
>   Parameters: {"eid"=>"ac92f5b6dea4597f6bbca01816977dc6",
> "action"=>"destroy_existing", "_method"=>"delete", "id"=>"2919",
> "controller"=>"admin/diplomas"}
>
> NoMethodError (You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.constantize):

Backtrace is uncomplete, please remove backtrace silencers in 
config/initializers/backtrace_silencers.rb

>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> httpserver.rb:104:in `service'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> httpserver.rb:65:in `run'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:173:in `start_thread'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:162:in `start'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:162:in `start_thread'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:95:in `start'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:92:in `each'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:92:in `start'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:23:in `start'
>   /Users/scrozier/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/
> server.rb:82:in `start'
>
> > In an embedded scaffold you can force adding those links overriding
> > nested_habtm? method:
> >
> > class DiplomasController < ApplicationController
> >         active_scaffold do |config|
> >                 ...
> >                 config.nested.shallow_delete = true
> >         end
> >         protected
> >         def nested_habtm?
> >                 return true unless active_scaffold_constraints.empty?
> >                 super
> >         end
> > end

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