Forum: Rails Engines development Issues with config.gem

91453ebb3f8e0d63b68249b3108d7d62?d=identicon&s=25 Cameron Yule (camerony)
on 2008-07-28 13:03
(Received via mailing list)
Hi all, I'm using Rails and Engines 2.1.0 and ran into a problem while
setting up some config.gem dependencies.

>From my test.rb environment

# Gems specifically required for testing
config.gem 'rspec',         :lib => 'spec',         :version => '1.1.4'
config.gem 'rspec-rails',   :lib => 'spec/rails',   :version => '1.1.4'
config.gem 'ZenTest'

Starting test environment from console

$ script/server -e test
…
These gems that this application depends on are missing:
 - rspec
 - rspec-rails
 - ZenTest
Run "rake gems:install" to install them.
Attempting to copy plugin assets from
'/Users/cameron/Sites/marque/glue/vendor/plugins/glue_core/assets' to
'/Users/cameron/Sites/marque/glue/public/plugin_assets'
Exiting
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/builder.rb:169:in
`build': undefined method `[]' for :glue_core:Symbol (NoMethodError)
  from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:261:in
`add_route'
  from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:269:in
`add_named_route'
  from
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/routing/route_set.rb:55:in
`method_missing'
…

Strangely enough, commenting out the following line from
config/routes.rb seems to get rid of the errors (although it's
obviously not a solution!)

# Install routes from the glue core plugin
map.from_plugin :glue_core

Anyone run into this before?
This topic is locked and can not be replied to.