Forum: Rails Engines Rails2, engine, undefined method `public_asset_directory'

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2ac25ae7409e8fa8e18f7bae0e466d8f?d=identicon&s=25 Jonathan R. (jrochkind)
on 2010-07-23 01:54
I am trying to develop a Rails2 'engine', with the engines plugin.

Can an engine plugin not be a gem?  Everything works fine if my engines
plugin is actually a plugin. But if I try to make it a gem-plugin
instead, when trying to resolve assets in the plugin, I get this
following error. Which seems to have no google hits. Any hints?

undefined method `public_asset_directory'

/home/rochkind/empty/vendor/plugins/blacklight/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:112:in
`plugin_asset_path'
/home/rochkind/empty/vendor/plugins/blacklight/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:104:in
`pluginify_sources'
/home/rochkind/empty/vendor/plugins/blacklight/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:104:in
`map!'
/home/rochkind/empty/vendor/plugins/blacklight/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:104:in
`pluginify_sources'
/home/rochkind/empty/vendor/plugins/blacklight/vendor/plugins/engines/lib/engines/rails_extensions/asset_helpers.rb:72:in
`javascript_include_tag'
C77f0aa1f377e6f4145f0661fd89f8c1?d=identicon&s=25 ross w. (ross123456)
on 2011-04-14 08:58
Wish you will be successful.
This topic is locked and can not be replied to.