Assets Pipeline Failure

47 views
Skip to first unread message

bruce

unread,
Mar 6, 2013, 9:39:27 PM3/6/13
to alche...@googlegroups.com
For some reason alchemy/alchemy.js was not compiled
I added this to production.rb
config.assets.precompile += ['alchemy/alchemy.js']

Now I get this error
** Execute assets:precompile:primary
rake aborted!
undefined method `admin_picture_path' for #<#<Class:0x007fe29c653c00>:0x007fe2a0524218>
in vendor/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.routes.js.erb:17:in `evaluate_source'

Any Ideas??

Thanks
Bruce

Thomas von Deyen

unread,
Mar 7, 2013, 2:02:18 AM3/7/13
to alche...@googlegroups.com
You dont need to add Alchemys assets to the precompiler. Alchemy handles that for you. 

Have you mounted Alchemy::Engine in your routes file?

Greetz
Thomas

--
You received this message because you are subscribed to the Google Groups "Alchemy CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alchemy-cms...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bruce Davison

unread,
Mar 7, 2013, 4:20:26 PM3/7/13
to alche...@googlegroups.com
Thomas,
Thanks for you response.
Yes this is in the routes file
mount Alchemy::Engine => '/'

-- 
Bruce Davison
Sent with Sparrow

bruce

unread,
Mar 8, 2013, 7:18:36 PM3/8/13
to alche...@googlegroups.com
Anyway this fixed the problem
  config.assets.compile = true
Reply all
Reply to author
Forward
0 new messages