Adding my appname to the URL

Hi All,
I need to get my Ruby on Rails application running on:
http://IP:port/AppName/Controller/Action
rather than:
http://IP:port/Controller/Action directly
That’s because I want to integrate it with facebook.

I’ve tried the following in environment.rb but didn’t work:
uncommented:
config.action_controller.session_store = :active_record_store

and added:
ActionController::AbstractRequest.relative_url_root = “/myappname”

But it didn’t work, can any1 please advise.

I think you’ll need to either configure this with the web server, and/or
possibly add the AppName to your routes. I’m really not sure since I’ve
never done it, but that would be a good place to start.

I would put nginx in front of your rails app and rewrite it. This way
when
you need more mongrels you just add more upstream directives.

AEM

On Dec 27, 2007 1:33 AM, Mohamed S.
[email protected]
wrote:

config.action_controller.session_store = :active_record_store

and added:
ActionController::AbstractRequest.relative_url_root = “/myappname”

But it didn’t work, can any1 please advise.

Posted via http://www.ruby-forum.com/.


Adrian Esteban Madrid
Lead Developer, Prefab Markets
http://www.prefabmarkets.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs