I am using ember with rails. I want to get image path in rails asset pipeline. Does emberjs has any function like asset-path in sass-rails?
Asked
Active
Viewed 2,313 times
21
-
I know I can use *.handlebar.erb template, and use
. But I wonder if there are better way. – xnjiang Sep 28 '12 at 03:33
-
7curious if you found a solution? – Feech Sep 09 '13 at 16:58
1 Answers
1
This is hardly ideal, but for lack of a better solution I've been handling this in my css:
.logo{
background-image: url(image_path('logo.png'))
}
This approach is often fine, but it has drawbacks. There's an excellent Stackoverflow discussion of using img tags vs background-image here.

Community
- 1
- 1

nullnullnull
- 8,039
- 12
- 55
- 107