fero 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?
> 
> thanks. f.

Maybe you can set the
# Reset the asset host
ActionController::Base.asset_host = Proc.new do |source, request|
  "#{request.protocol}#{request.host_with_port}"
end
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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