gems/railties-3.0.6/lib/rails/commands/plugin.rb:277: Commands is not a module (TypeError)

29 views
Skip to first unread message

Jason FB

unread,
Jun 8, 2011, 12:09:42 AM6/8/11
to ActiveScaffold : Ruby on Rails plugin
in attempting to solve my other problem (see previous post), I went to
try to upgrade the plugin in my vendor/ folder, but I ran into a
different problem:


first I removed the old contents with rm -rf vendor/plugins/
active_scaffold

Then I committed that with git. Then I tried to run this:
$ rails plugin install git://github.com/vhochstein/active_scaffold.git
-r 'rails-3.0'

(there was a chicken/egg problem with the "as_routes" in my routes.rb
file, so I temporarily commented them out)

After commenting out the as_routes, when I run this I get an error
$ rails plugin install git://github.com/vhochstein/active_scaffold.git
-r 'rails-3.0'


/Users/jason/Projects/MyApp/json/ruby/1.8/gems/railties-3.0.6/lib/
rails/commands/plugin.rb:277: Commands is not a module (TypeError)
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`require'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`require'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/
activesupport-3.0.6/lib/active_support/dependencies.rb:239:in
`require'
from /Users/jason/Projects/MyApp/json/ruby/1.8/gems/railties-3.0.6/
lib/rails/commands.rb:17
from script/rails:6:in `require'
from script/rails:6

Matt R

unread,
Jun 13, 2011, 1:52:49 PM6/13/11
to actives...@googlegroups.com
I'm also getting this on Rails 3.0.7... what the heck? It's not related to active_scaffold, may be a rake 0.9.x issue? what Rake are you on
Reply all
Reply to author
Forward
0 new messages