On Thu, Feb 8, 2007 at 3:48 AM, fero <[email protected]> wrote:
>
> i am on lighttpd now, and i cannot set
> cannot set enviroment variable:
>
> i added this line to enviroment.rb, but it doesn not work!!
>
> ENV['RAILS_RELATIVE_URL_ROOT'] = 'something'
>
> links on my page are ok, but all links to images, stylesheets etc are
> broken, (because relative_url_root returns ''), what else can I do?

See 
http://rails.lighthouseapp.com/projects/8994/tickets/1946-setting-a-relative-root-url-via-a-web-server-not-possible-anymore

You must set config.action_controller.relative_url_root = 'something'
now instead of using the environment variable.

jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to