At 9:23 PM -0700 9/9/07, oshida wrote: > > RAILS_APPLICATION_PREFIX = 'app1' >> # uncomment the next line if this application is served from a directory >> with other rails applications > > ActionController::AbstractRequest.relative_url_root = '/' + > > RAILS_APPLICATION_PREFIX > >Oops, I've never met these lines. >Is this a recent grammer of rails?
No , it is code I added. When I deploy multiple rails apps served from subdirectories I set my own constant named: RAILS_APPLICATION_PREFIX in config/environment.rb for later use. I set this constant equal to the name of the directory where the rails app is located. One use is for setting ActionController::AbstractRequest.relative_url_root. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
