Topic: Errors when trying to create Scaffold

Okay, I've fought with this long enough.

When I do (following: http://www.onlamp.com/pub/a/onlamp/2006 … generate):

script/generate scaffold recipe recipe

Then I get the following:

      exists  app/models/
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/recipes
      exists  app/views/layouts/
      exists  test/functional/
      exists  test/unit/
      create  app/views/recipes/index.html.erb
wrong number of arguments (1 for 2)

And if I do:

script/generate scaffold recipe

It creates all of the scaffolding but then when I try to insert a record via the created web interface I get the following error:

ActiveRecord::StatementInvalid in RecipesController#create
-Jeremy- | Windows Server 2003 MCP

Re: Errors when trying to create Scaffold

What version of Rails are you running?

If you do

./script/about

(from your Rails app root)

You should get something like this:

About your application's environment
Ruby version              1.8.6 (universal-darwin9.0)
RubyGems version          0.9.4
Rails version             2.0.1
Active Record version     2.0.1
Action Pack version       2.0.1
Active Resource version   2.0.1
Action Mailer version     2.0.1
Active Support version    2.0.1
Application root          /Users/ryenski/Sites/cookbook
Environment               development
Database adapter          sqlite3
Ryan Heneise  |  Art of Mission  |  Now with extra-strong Donor Tools mojo