# Routes.rb

**URL:** <https://www.ruby-forum.com/t/routes-rb/80091>\
**Category:** Rails\
**Created:** [December 29, 2005, 5:47am UTC](https://www.ruby-forum.com/t/routes-rb/80091 "2005-12-29T05:47:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@Ramesh\_R](https://www.ruby-forum.com/u/Ramesh_R)\
**Post date:** [December 29, 2005, 5:47am UTC](https://www.ruby-forum.com/t/routes-rb/80091/1 "2005-12-29T05:47:23Z")

</div>

Hi I am very new to Ruby and Rails.  
I am trying to setup a simple application on Apache with MySQL on a  
Fedora system.  
I have trouble setting up fast cgi, I am trying to deal with it.  
But is fast cgi mandatory? From what I have read it boosts the  
performance of the rails application.

I tried a scaffold application and I am able to run it using webbrick.  
I am trying to set this up in Apache but I am stuck with changing the  
default route.  
I have enabled CGI in apache and when I point my browser to the public  
folder I am able to see the “Congratulations, you’ve put Ruby on  
Rails!” page. But I am not able to configure it run the application.  
The name of the application is blogtest and I have set the Alias  
(/blogtest) and Directory options in Apache’s httpd.conf file to the  
public folder of the rails application.  
The application has a controller named admin (admin\_controller.rb)

I tried my best to search on the net and find out something I could  
understand but wasn’t able to figure out. If someone could explain me  
how to configure and help me understand how it all works that will be  
great.

Thanks  
Ramesh

---

<div class="post-metadata">

**Author:** ![Ramesh\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@Ramesh\_R](https://www.ruby-forum.com/u/Ramesh_R)\
**Post date:** [December 30, 2005, 5:21am UTC](https://www.ruby-forum.com/t/routes-rb/80091/2 "2005-12-30T05:21:03Z")

</div>

> But is fast cgi mandatory? From what I have read it boosts the  
> performance of the rails application.

No ,its not mandatory …atleast not for development phase

I tried a scaffold application and I am able to run it using webbrick.

> I am trying to set this up in Apache but I am stuck with changing the  
> default route.

Have you setup a Virtual host or a Directory alias in Apache ?  
I guess if you are seeing the Rails welcome page that must be taken care  
of.  
So open the routes.rb and add (as given in the comments ) something  
like  
this  
map.connect ’ ', :controller =\> “admin” ,:action =\>‘index’

---

<div class="post-metadata">

**Author:** ![Ramesh\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@Ramesh\_R](https://www.ruby-forum.com/u/Ramesh_R)\
**Post date:** [December 30, 2005, 5:51am UTC](https://www.ruby-forum.com/t/routes-rb/80091/3 "2005-12-30T05:51:09Z")

</div>

Delete the index.html file if you haven’t already.

The .htaccess file looks for that first. If it’s found, your application  
won’t start.

- Rabbit

* * *
