Hello
I have an application where URI looks like http://mysite.com/post1 or http://mysite.com/post2 etc.
But with routing as this i can’t get images because it stored at http://mysite.com/images/ folder in my server.
So how to overcome this problem?
Hello I have an application where URI looks like http://mysite.com/post1 or http://mysite.com/post2 etc. But
Share
Take a look at Compass. It is a stylesheet authoring framework which allows you to use helpers such as image_url in scss stylesheets.
image_urlcan be used in combination with a configuration variableasset_host, that prepends that path to images in your stylesheets.Here is an example: