Hi @ all,
I have a gem, which implements an engine, to provide assets. Pretty much
like the following example:
http://brandonhilkert.com/blog/how-to-build-a-rails-engine/ However, my
gem serves images.
In a rails app, I can access the image using image_path - so far so
good.
My problem now is, how can I access these images from another gem?
This other gem is part of my rail app. But when I access the image from
there with image_path, I get images/foo.png rather than asses/foo.png.
It seems the asset-pipeline cannot find the image when calling this from
the gem.
Does anyone know, how do I access assets from a gem?
Thank you in advance!
BR Martin
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ac714b0f40cf97697e12215b0c7245b1%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment