# InstantRails newbie question

**URL:** <https://www.ruby-forum.com/t/instantrails-newbie-question/119977>\
**Category:** Rails\
**Created:** [November 12, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/instantrails-newbie-question/119977 "2007-11-12T17:02:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukesh23singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@mukesh23singh](https://www.ruby-forum.com/u/mukesh23singh)\
**Post date:** [November 12, 2007, 5:02pm UTC](https://www.ruby-forum.com/t/instantrails-newbie-question/119977/1 "2007-11-12T17:02:45Z")

</div>

I am following the tutorial ‘Rolling with Ruby On Instant Rails’. I  
tried creating the cookbook2 application. It worked the first time.

To practice, I tried it three times in total and it worked. Now I am  
trying it the fourth time and I’ve done it till the step of editing  
the controller class for ‘recipe’ to add the line:

scaffold :recipe

When I browse to localhost:3000/cookbook2/list

I get an error:

no route found to match “/cookbook2” with {:method=\>:get}

I have my Web server running on port 3000. I am sure about that.

Please help.

---

<div class="post-metadata">

**Author:** ![mukesh23singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@mukesh23singh](https://www.ruby-forum.com/u/mukesh23singh)\
**Post date:** [November 12, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/instantrails-newbie-question/119977/2 "2007-11-12T17:22:04Z")

</div>

Mukesh S. wrote:

> I get an error:
> 
> no route found to match “/cookbook2” with {:method=\>:get}

Hi Mukesh,

I’m guessing that you created a controller called recipe or recipes or  
something like that and added the scaffold line to it. If that’s the  
case, you should be accessing the URL:

localhost:3000/recipe/list or localhost:3000/recipes/list

The general convention in Rails (without any special routing) is:  
server:port/{controller}/{action}/{id}

Cheers,  
Mohit.  
11/13/2007 | 12:10 AM.

---

<div class="post-metadata">

**Author:** ![mukesh23singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@mukesh23singh](https://www.ruby-forum.com/u/mukesh23singh)\
**Post date:** [November 12, 2007, 5:23pm UTC](https://www.ruby-forum.com/t/instantrails-newbie-question/119977/3 "2007-11-12T17:23:49Z")

</div>

Thanks very much, Mohit.

I think because of the repetition, it got stale in my head and I wired  
up the wrong URL. Thanks very much. That was what it was supposed to  
be and it works now.

I can proceed with studying more now.

---

<div class="post-metadata">

**Author:** ![mukesh23singh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@mukesh23singh](https://www.ruby-forum.com/u/mukesh23singh)\
**Post date:** [November 12, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/instantrails-newbie-question/119977/4 "2007-11-12T17:32:35Z")

</div>

Mukesh S. wrote:

> Thanks very much, Mohit.
> 
> I think because of the repetition, it got stale in my head and I wired  
> up the wrong URL. Thanks very much. That was what it was supposed to  
> be and it works now.
> 
> I can proceed with studying more now.

Good luck and welcome to Rails!

Cheers,  
Mohit.  
11/13/2007 | 12:31 AM.
