PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Incompatibility with CKEditor plugin #759

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this is a problem with ActiveScaffold or CKEditor, but the two 
plugins are unfortunately not compatible, and considering that there is a 
bridge plugin for the two at 
http://github.com/atalargo/active_scaffold_ckeditor, it seems a shame to not 
try and resolve this.

I can replicate this problem very easily by simply installing ActiveScaffold, 
and then installing CKEditor.  When I then make any calls to ActiveScaffold 
(such as the following code added to the application controller:

      # ActiveScaffold settings
      ActiveScaffold.set_defaults do |config| 
             config.ignore_columns.add [:created_at, :updated_at, :lock_version]
      end

), then I get the error "undefined method `configure' for 
ActiveScaffold::Config::Core:Class"

However, I have managed a workaround by commenting out the aliasing of 
javascript_include_tag in the CKEditor plugin, so for some reason it's that 
code which is causing the conflict.

Happy to do what I can to help, but to be honest I can't figure out why the 
aliasing of javascript_include_tag is causing this problem.

I am using the following gems:
  * actionmailer (2.3.8)
  * actionpack (2.3.8)
  * activerecord (2.3.8)
  * activeresource (2.3.8)
  * activesupport (2.3.8)
  * awesome_print (0.2.1)
  * builder (2.1.2)
  * columnize (0.3.1)
  * cucumber (0.8.5)
  * cucumber-rails (0.3.2)
  * database_cleaner (0.5.2)
  * diff-lcs (1.1.2)
  * factory_girl (1.3.1)
  * friendly_id (3.0.6)
  * gherkin (2.1.5)
  * haml (3.0.13)
  * hoptoad_notifier (2.3.2)
  * json_pure (1.4.3)
  * linecache (0.43)
  * newrelic_rpm (2.12.3)
  * nokogiri (1.4.2)
  * pg (0.9.0)
  * rack (1.1.0)
  * rack-test (0.5.3)
  * rails (2.3.8)
  * rake (0.8.7)
  * rspec (1.3.0)
  * rspec-rails (1.3.2)
  * ruby-debug (0.10.3)
  * ruby-debug-base (0.10.3)
  * shoulda (2.10.3)
  * sqlite3-ruby (1.2.5)
  * term-ansicolor (1.0.5)
  * trollop (1.16.2)
  * webrat (0.7.1)

And the application trace is as follows:
/Users/matthew/Projects/brc/www/vendor/plugins/active_scaffold/lib/active_scaffo
ld/config/core.rb:193:in `method_missing'
/Users/matthew/Projects/brc/www/vendor/plugins/active_scaffold/lib/active_scaffo
ld.rb:18:in `set_defaults'
/Users/matthew/Projects/brc/www/app/controllers/application_controller.rb:25
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:380:in `load_without_new_constant_marking'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:380:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:521:in `new_constants_in'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:379:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:259:in `require_or_load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:425:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:80:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:92:in `const_missing'
/Users/matthew/Projects/brc/www/app/controllers/admin/appeals_controller.rb:1
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:380:in `load_without_new_constant_marking'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:380:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:521:in `new_constants_in'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:379:in `load_file'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:259:in `require_or_load'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:425:in `load_missing_constant'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.
rb:80:in `const_missing'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:
364:in `constantize'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:
363:in `each'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/inflector.rb:
363:in `constantize'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/stri
ng/inflections.rb:162:in `constantize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route
_set.rb:444:in `recognize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route
_set.rb:437:in `call'

Original issue reported on code.google.com by matthew....@gmail.com on 21 Jul 2010 at 10:02

GoogleCodeExporter commented 9 years ago
Try to change

class Core < Base

with 

class Core < ActiveScaffold::Config::Base

Original comment by sergio.c...@gmail.com on 22 Jul 2010 at 7:41

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply, that worked perfectly.

Original comment by matthew....@gmail.com on 22 Jul 2010 at 8:38

GoogleCodeExporter commented 9 years ago
Fixed in c4b94a45bf234f893e88cd6100ce4239b2914992

Original comment by sergio.c...@gmail.com on 23 Jul 2010 at 7:18