# No route matches "/MyTest/" with {:method=\>:get} error

**URL:** <https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278>\
**Category:** Rails\
**Created:** [September 23, 2008, 8:47am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278 "2008-09-23T08:47:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbcox23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Post date:** [September 23, 2008, 8:47am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278/1 "2008-09-23T08:47:58Z")

</div>

I keep getting this error when I go to [http://localhost:3000/MyTest/](http://localhost:3000/MyTest/). I  
created this controller inside Terminal and then I edited the  
my\_test\_controller.rb file so inside it says:

class MyTestController \< ApplicationController  
def index  
render\_text “Please Help”  
end  
end

I also deleted the index.html file in the public folder and I have not  
edited anything in the routes.db.

I’m not too sure of the problem, I was just reading and following a  
tutorial to get started with Ruby. I don’t know what to do if I can’t  
even get this to show.

---

<div class="post-metadata">

**Author:** ![tbcox23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Post date:** [September 23, 2008, 9:00am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278/2 "2008-09-23T09:00:24Z")

</div>

Nvm, I figured it out.

---

<div class="post-metadata">

**Author:** ![tbcox23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Post date:** [October 16, 2008, 2:04am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278/3 "2008-10-16T02:04:07Z")

</div>

Tom C. wrote:

> Nvm, I figured it out.

Mind sharing? I am having the same problem and none of these solutions  
seem to work:  
Restarting WEBrick  
Changing the routes.rb file (or leaving it as is either)  
deleting the index file in the public folder

my setup is almost exactly the same except I have /reportcard/ and  
report\_card\_controller.rb

Any help is appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![tbcox23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Post date:** [October 16, 2008, 3:00am UTC](https://www.ruby-forum.com/t/no-route-matches-mytest-with-method-get-error/149278/4 "2008-10-16T03:00:14Z")

</div>

On Oct 16, 8:04 am, Jeff Eg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## Thanks.
> 
> Posted viahttp://www.ruby-forum.com/.

The default route to your report\_card\_controller.rb would be mapped  
as /report\_card and not as /reportcard
