On 16 February 2010 11:54, seafront <[email protected]> wrote: > 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
What is 'Manage' supposed to do? You might be using an out of date tutorial, I suggest having a look at the rails guide on Getting Started at http://guides.rubyonrails.org/. This includes the use of scaffolding. Also work through the guides on ActiveRecord Associations and Debugging, and most of the rest in fact. Colin Colin > 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. > > -- 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.

