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. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Thu, Feb 8, 2007 at 3:48 AM, fero <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---