Just running through the first little project (depot) in 'Agile Web
Development with Rails'. It isn't scaffolding like it says it should
in the book.
After running:
rails -d mysql depot
then SQLing:
drop table if exists products;
create table products (
id int not null auto_increment,
title varchar(100) not null,
description text not null,
image_url varchar(200) not null,
price decimal(10,2) not null,
primary key (id)
);
then config my database.yml
... it won't completely scaffold. I get:
script/generate scaffold Product Admin
exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/products
exists app/views/layouts/
exists test/functional/
exists test/unit/
wrong number of arguments (1 for 2)
I just updated Rails and MySQL, and the MySQL gem. Any tips?
And Ryan, thanks, for your smartarse comment. I'm the last dude to
jump in and ask in forums without searching and hunting through FAQs-
I spent a good hour of 'my busy life' busting out searches, I had no
idea what I was looking for. When you're brand new to something it's
not easy to know exactly isn't working properly. So lay off right?
I think this sort of post goes against everything the members of the
Ruby/Rails community (at least used to...) stand for. Who does it
hurt if someone posts about something again? If no one feels like
answering them, they will turn to Google; otherwise, people like me
who know the answer don't mind taking 10 seconds out of their day to
give them an answer.
If you want to talk about googling before you post, then please hit
Google for MINASWAN.
I've got to agree. I find the complaints more grating than repeated
queries. I can easily just leave the queries for others to answer if
I like, the complaints tend to irritate me.
Now then this is Rails-talk not ruby-talk, I wonder if there's an
equivalent DHHIxSWAx to MINSWAN <ducks>