#60

Solved

relative paths on CSS routes

Reported by Jorge Díaz on Ajax Scaffold · 15/11/2006 16:04:39

Assigned to:
rrwhite
Priority:
Normal
Status:
Solved
Category:
None
Version:
3.1.0

If your rails app is using a relative basepath in the ActionController like this

ActionController::AbstractRequest.relative_url_root = ‘/xxxxxx’

Then your Ajax Scaffold can advice this in the url helpers with no problem, but the css styles on ajax_scaffold.css for backbround images will be lost because they are pointing de web root dir as you can see here:

background: url(/images/add.gif) 1px 50% no-repeat;

You should add .. to all images links in the stylesheet for making them relative to the app. This way:

background: url(../images/add.gif) 1px 50% no-repeat;

Attachments Upload

No attachment has been uploaded, yet.


Loading comments...