Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 144831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:18:57+00:00 2026-05-11T08:18:57+00:00

I have a book called Learning Ruby and under the section for rails is

  • 0

I have a book called ‘Learning Ruby’ and under the section for rails is gives a step-by-step walk through of creating a simple Rails web app.

It says near the end type the command:

./script/generate scaffold addressbook addressbook

But part-way through I get the error:

wrong number of arguments (1 for 2)

I assume this is because a slight version difference, but I cant get my rails application to work, and was hoping somebody here might be able to help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:18:58+00:00Added an answer on May 11, 2026 at 8:18 am

    If you run script/generate scaffold without any arguments, it will tell you how to use it:

    $ script/generate scaffold Usage: script/generate scaffold ModelName [field:type, field:type]  Options:         --skip-timestamps            Don't add timestamps to the migration file for this model         --skip-migration             Don't generate a migration file for this model         --force-plural               Forces the generation of a plural ModelName  Rails Info:     -v, --version                    Show the Rails version number and quit.     -h, --help                       Show this help message and quit.  General Options:     -p, --pretend                    Run but do not make any changes.     -f, --force                      Overwrite files that already exist.     -s, --skip                       Skip files that already exist.     -q, --quiet                      Suppress normal output.     -t, --backtrace                  Debugging: show backtrace on errors.     -c, --svn                        Modify files with subversion. (Note: svn must be in path)     -g, --git                        Modify files with git. (Note: git must be in path)  Description:     Scaffolds an entire resource, from model and migration to controller and     views, along with a full test suite. The resource is ready to use as a     starting point for your RESTful, resource-oriented application.      Pass the name of the model (in singular form), either CamelCased or     under_scored, as the first argument, and an optional list of attribute     pairs.      Attribute pairs are column_name:sql_type arguments specifying the     model's attributes. Timestamps are added by default, so you don't have to     specify them by hand as 'created_at:datetime updated_at:datetime'.      You don't have to think up every attribute up front, but it helps to     sketch out a few so you can start working with the resource immediately.      For example, 'scaffold post title:string body:text published:boolean'     gives you a model with those three attributes, a controller that handles     the create/show/update/destroy, forms to create and edit your posts, and     an index that lists them all, as well as a map.resources :posts     declaration in config/routes.rb.      If you want to remove all the generated files, run     'script/destroy scaffold ModelName'.  Examples:     `./script/generate scaffold post`     `./script/generate scaffold post title:string body:text published:boolean`     `./script/generate scaffold purchase order_id:integer amount:decimal` 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 167k
  • Answers 167k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here you can find all sorts of old download links.… May 12, 2026 at 1:27 pm
  • Editorial Team
    Editorial Team added an answer 1) Multiple hard-coded views of the same data: Brief, Detailed,… May 12, 2026 at 1:27 pm
  • Editorial Team
    Editorial Team added an answer Most modern, desktop or server oriented operating systems support POSIX… May 12, 2026 at 1:27 pm

Related Questions

I have a book called Statistics for Computer Scientists as well as my engineering
I'm learning C# now and a beginner in the programming world. I have a
I'm currently reading a great book called 'Programming Collective Intelligence' by Toby Segaran (which
(Just to let you now, I'm learning to develop for iPhone with a book

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.