Topic: How do I run rails from my website root?

Hey everyone!

I am trying to run ror from my website root. Is this possible?
Right now, I have the directory like this:
website.com/tags/

I would like it to be:
website.com

Any help would be great!

Re: How do I run rails from my website root?

actually, it's kinda hard NOT to run Rails from your site root.

How to do actually do it depends on your web host and the interface they let you use.  I'm assuming 'tags' isn't part of your Rails app but is, in fact, the name of it.

Re: How do I run rails from my website root?

or if tags is your default controller, look in routes.rb in the config directory, the comments show how to map your default controller to your domain name root.

Re: How do I run rails from my website root?

jjmancini wrote:

Hey everyone!

I am trying to run ror from my website root. Is this possible?
Right now, I have the directory like this:
website.com/tags/

I would like it to be:
website.com

Any help would be great!

routes.rb:

map.connect '', :controller => 'tags'

Put that line inside the routing do {} block.

vinnie - rails forum admin

Re: How do I run rails from my website root?

Ok, I will go ahead and check that out!

Everything I was reading was talking about symbolic links and stuff. Thanks for the help!