Scaffold in Aptana error - wrong number of arguments(1 for 2) help?

Hi all - I’m new to rails and programming in general.
I installed Rails 2.3.5, using mac os x 10.5.8, running into problems
using scaffold. I am using Aptana Radrails as my IDE. I was not
encountering this problem when using Rails 1.2.6, which is odd because
from what I can gather online the entry syntax I am using should only
work with Rails 2.x . Any help would be greatly appreciated.

I enter the following:

script/generate scaffold product \ title:string

Which then yields:

  exists  app/models/
  exists  app/controllers/
  exists  app/helpers/
  create  app/views/products
  exists  app/views/layouts/
  exists  test/functional/
  exists  test/unit/
  create  test/unit/helpers/
  exists  public/stylesheets/
  create  app/views/products/index.html.erb

wrong number of arguments (1 for 2)

On Jan 30, 8:49 pm, Will [email protected] wrote:

You don’t want that backslash there (I’m guessing that you copied that
from a tutorial, where a \ at the end of the line usually indicates
that the command should be entered on a single line)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs