# No route matches with {:method=\>:get} Error in AWDWR Book

**URL:** <https://www.ruby-forum.com/t/no-route-matches-with-method-get-error-in-awdwr-book/130696>\
**Category:** Rails\
**Created:** [March 1, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/no-route-matches-with-method-get-error-in-awdwr-book/130696 "2008-03-01T23:52:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gr0k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19adc/32.png) [@gr0k](https://www.ruby-forum.com/u/gr0k)\
**Post date:** [March 1, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/no-route-matches-with-method-get-error-in-awdwr-book/130696/1 "2008-03-01T23:52:14Z")

</div>

Hi I’m working on the AWDWR book and I’m on the admin section of the  
book. I have rails 2 installed on my machine and I have ran into an  
error when I created my controller login but when I go to  
[http://localhost:3000/login/index](http://localhost:3000/login/index) I get this error:

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

I haven’t touched the routes.rb file and when I generated the controller  
I went:

ruby script/generate controller Login add\_user login logout index  
delete\_user list\_users

The controller and views files were created correctly. Any help would be  
awesome.

Thanks,  
Tony

---

<div class="post-metadata">

**Author:** ![gr0k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19adc/32.png) [@gr0k](https://www.ruby-forum.com/u/gr0k)\
**Post date:** [March 2, 2008, 2:06am UTC](https://www.ruby-forum.com/t/no-route-matches-with-method-get-error-in-awdwr-book/130696/2 "2008-03-02T02:06:48Z")

</div>

Em Saturday 01 March 2008, Tony Bianco escreveu:

> Hi I’m working on the AWDWR book and I’m on the admin section of the  
> book. I have rails 2 installed on my machine and I have ran into an  
> error when I created my controller login but when I go to  
> [http://localhost:3000/login/index](http://localhost:3000/login/index) I get this error:
> 
> No route matches “/login/index” with {:method=\>:get}

[…]  
Have you tried just “/login”?

## Best regards,

## Davi V.

E-mail: removed\_email\_address@domain.invalid  
MSN : removed\_email\_address@domain.invalid  
GTalk : removed\_email\_address@domain.invalid  
Skype : davi vidal  
YIM : davi\_vidal  
ICQ : 138815296

---

<div class="post-metadata">

**Author:** ![gr0k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e19adc/32.png) [@gr0k](https://www.ruby-forum.com/u/gr0k)\
**Post date:** [March 2, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/no-route-matches-with-method-get-error-in-awdwr-book/130696/3 "2008-03-02T18:54:15Z")

</div>

Such a noob thing to do. I’m a PHP developer making the transition to  
rails and I forgot about the webbrick server and how sometimes you need  
to restart it, so when I restarted the webbrick server it was all good.

Now if I can only figure out how to develop on windows using mongrel and  
apache that would be awesome!
