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

Posted by Jonathan Rochkind (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'
Posted by ross win ross (ross123456)
on 2011-04-14 08:58
Wish you will be successful.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.