I'm reading a book "Beginning Ruby on Rails"
I made an table, and tried to make an Model class. But it doesn't
work.
I made the table as below.
mysql> show columns from books ;
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(80) | NO | | NULL | |
| description | text | NO | | NULL | |
| price | decimal(8,0) | NO | | NULL | |
+-------------+--------------+------+-----+---------+----------------+
4 rows in set (0.07 sec)
I typed to make an model class as below.
G:\web_apps\library>ruby script/generate scaffold Book Manage
exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/books
exists app/views/layouts/
exists test/functional/
exists test/unit/
exists test/unit/helpers/
exists public/stylesheets/
wrong number of arguments (1 for 2)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.