Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running a Ruby on Rails server on an Ubuntu VirtualBox guest machine. I can access the local server from my host machine by setting the Ubuntu network adapter to bridged. My app's hmtl is loading OK, but the assets e.g. the images are not.

share|improve this question

1 Answer 1

In your config/environments/development.rb file, you need to set the config variable, asset_host, that tells the app where to load the assets. For example if your ip address of your local host is http://10.0.2.15:3000 then

config.asset_host = 'http://10.0.2.15:3000'

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.