[OpenLayers-Users] OpenLayers in Rails

angus scown gus at sdx.com.au
Thu Oct 11 01:26:43 EDT 2007


staff-gmail wrote:
> The control icons are not showing up in Rails - I have OpenLayers.js 
> from the build directory in the Rails javascripts folder  and put the 
> /img and /theme also within the javascripts folder but they are not 
> being accessed correctly.  The control buttons seem to work okay - but 
> the images don't show.  Anyone work around this ? 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>   
if you don't want to modify the openlayers javascript then you need to 
place the /img folder in a folder with the controller name under the 
public directory.

i.e. /public/some-controller-name/img
e.g /public/jobs/img



More information about the Users mailing list