# Error in the tutorial?

**URL:** <https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122>\
**Category:** rubyonrails-talk\
**Created:** [May 18, 2007, 2:47pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122 "2007-05-18T14:47:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Carraud](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luis\_Carraud](https://discuss.rubyonrails.org/u/Luis_Carraud)\
**Post date:** [May 18, 2007, 2:47pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/1 "2007-05-18T14:47:24Z")

</div>

Hello everyone!!!

I'm new to Rails... I'm trying to follow the first tutorial steps, but I came across this error:

D:\InstantRails\rails\_apps\cookbook2\>ruby script\generate scaffold recipe recipe

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists app/controllers/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists app/helpers/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists app/views/recipe &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists app/views/layouts/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists test/functional/ &nbsp;&nbsp;dependency model &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists app/models/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists test/unit/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exists test/fixtures/ &nbsp;&nbsp;&nbsp;identical app/models/recipe.rb &nbsp;&nbsp;&nbsp;identical test/unit/recipe\_test.rb &nbsp;&nbsp;&nbsp;identical test/fixtures/recipes.yml &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error Before updating scaffolding from new DB schema, try creating a tab le for your model (Recipe)

Any ideas?

Thanks in advance! Luis

---

<div class="post-metadata">

**Author:** ![Luis\_Carraud](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luis\_Carraud](https://discuss.rubyonrails.org/u/Luis_Carraud)\
**Post date:** [May 18, 2007, 3:38pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/2 "2007-05-18T15:38:28Z")

</div>

Dear Nanyang

Thank you very much for your help 🙂

However, it’s no use: I destroyed both models (category and recipe), and tried to follow the tutorial, but i get the same error ☹

The tutorial I’m following is:

[http://www.onlamp.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rails-revisited.html](http://www.onlamp.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rails-revisited.html)

[http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html](http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html)

Regards,

Luis

---

<div class="post-metadata">

**Author:** ![Luis\_Carraud](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luis\_Carraud](https://discuss.rubyonrails.org/u/Luis_Carraud)\
**Post date:** [May 18, 2007, 3:59pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/3 "2007-05-18T15:59:39Z")

</div>

Oh… Good idea… now… how do I delete cookbook2 project? Just delete the directory? Or is there a command line option to delete/destroy it?

Thanks,

---

<div class="post-metadata">

**Author:** ![Bill\_Walton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@Bill\_Walton](https://discuss.rubyonrails.org/u/Bill_Walton)\
**Post date:** [May 18, 2007, 4:08pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/4 "2007-05-18T16:08:08Z")

</div>

Hi Luis,

Luis Carraud wrote:

> I'm new to Rails... I'm trying to follow the first tutorial steps, but I came across this error: Before updating scaffolding from new DB schema, try creating a table for your model (Recipe)

Rails is telling you that it can't find your Recipes table. Make sure you do, in fact have one and that it's named Recipes. It needs to be plural. Rails is also telling you that you've already got a recipe.rb model. You need to delete that file. The only other time I remember a reader having this problem, he'd forgotten to save his create.sql script. When he ran the script it didn't complain but, in fact, no table had been created.

hth, Bill

---

<div class="post-metadata">

**Author:** ![Luis\_Carraud](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luis\_Carraud](https://discuss.rubyonrails.org/u/Luis_Carraud)\
**Post date:** [May 18, 2007, 5:28pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/5 "2007-05-18T17:28:33Z")

</div>

Bill

Thank you very much for your help.

The recipes and categories tables are created (I know about MySQL believe me). And I saved the create.sql script.

I’ll try beginning the tutorial all over again and let you know…

Regards,

---

<div class="post-metadata">

**Author:** ![Luis\_Carraud](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luis\_Carraud](https://discuss.rubyonrails.org/u/Luis_Carraud)\
**Post date:** [May 18, 2007, 5:29pm UTC](https://discuss.rubyonrails.org/t/error-in-the-tutorial/13122/6 "2007-05-18T17:29:24Z")

</div>

Ok. Thanks. I’ll try that…

The tutorial is pretty simple, don’t worry…

Regards,
