Closed bbuchalter closed 13 years ago
Yes. I already modified it to work on Rails 3. I'll push it in a couple of days when I get some free time. Thanks.
Also, I cannot remove the plugin once installed!
brian@ubuntu:~/code/lfm$ rails plugin remove ChainSelects
/home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:479:in load_missing_constant': ActionDispatch::Routing is not missing constant Mapper! (ArgumentError) from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:183:in
block in const_missing'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in each' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:181:in
const_missing'
from /home/brian/code/lfm/vendor/plugins/ChainSelects/lib/chain_selects/routing.rb:12:in <top (required)>' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
require'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in block in require' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
block in load_dependency'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in new_constants_in' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
load_dependency'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in require' from /home/brian/code/lfm/vendor/plugins/ChainSelects/lib/chain_selects.rb:3:in
<top (required)>'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in require' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
block in require'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in block in load_dependency' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
new_constants_in'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in load_dependency' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
require'
from /home/brian/code/lfm/vendor/plugins/ChainSelects/rails/init.rb:1:in block in <class:Plugin>' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/plugin.rb:81:in
eval'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/plugin.rb:81:in block in <class:Plugin>' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/initializable.rb:25:in
instance_exec'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/initializable.rb:25:in run' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/initializable.rb:50:in
block in run_initializers'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/initializable.rb:49:in each' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/initializable.rb:49:in
run_initializers'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/application.rb:134:in initialize!' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/application.rb:77:in
method_missing'
from /home/brian/code/lfm/config/environment.rb:5:in <top (required)>' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/application.rb:103:in
require'
from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/application.rb:103:in require_environment!' from /home/brian/.rvm/gems/ruby-1.9.2-p136@lfm/gems/railties-3.0.3/lib/rails/commands.rb:16:in
<top (required)>'
from script/rails:6:in require' from script/rails:6:in
You can delete the plugin manually for the mean time and the corresponding asset files (public/stylesheets/chain_selects.css, public/images/ajax-loader.gif).
Thanks for the tip. When do you think you'll push out that new code?
I'll try my best to push it today.
DEPRECATION WARNING: Rake tasks in vendor/plugins/ChainSelects/tasks/chain_selects_tasks.rake are deprecated. Use lib/tasks instead. (called from <top (required)> at /home/brian/code/lfm/Rakefile:7) rake aborted! ActionDispatch::Routing is not missing constant Mapper!
Using Rails 3.0.3. Any plans on supporting Rails 3?