# Routing error for application

**URL:** <https://www.ruby-forum.com/t/routing-error-for-application/158035>\
**Category:** Rails\
**Created:** [January 18, 2009, 8:53am UTC](https://www.ruby-forum.com/t/routing-error-for-application/158035 "2009-01-18T08:53:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@ramya](https://www.ruby-forum.com/u/ramya)\
**Post date:** [January 18, 2009, 8:53am UTC](https://www.ruby-forum.com/t/routing-error-for-application/158035/1 "2009-01-18T08:53:05Z")

</div>

Hi,

I am to learning Ruby on Rails with Rolling with Ruby on Rails  
orilley handout.

I created an empty application by using rails command.

Then i created my own controller using the command.

ruby script \generate controller MyTest  
This created a new controller file.

I used the port [http://127.0.0.1:3000/My\_Test](http://127.0.0.1:3000/My_Test) after starting the rails  
inbuilt server.

but i get the Routing Error.

No route matches “/My\_Test/index” with {:method=\>:get}

but when i just give the port alone it says Ruby on rails running in  
your system.

I just followed the tutorial but couldnt get through this step.

> **[Radar - O’Reilly](https://www.oreilly.com/radar/?page=2)**
>
> Now, next, and beyond: Tracking need-to-know trends at the intersection of business and technology

Can anybody help me with this

Regards  
Ramya

---

<div class="post-metadata">

**Author:** ![ramya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@ramya](https://www.ruby-forum.com/u/ramya)\
**Post date:** [January 18, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/routing-error-for-application/158035/2 "2009-01-18T15:59:50Z")

</div>

Go into your “public” directory (in your project) and rename the  
index.html to something else

Open config/routes and near the top add  
“map.resources :my\_tests”

Kill the process (control + c) and restart with script/server

That should do it
