Scott Le gendre wrote:
So use it to get started, but then be prepared to do the work your self.

Will, thanks for the comments and fully noted! I'm doing a tutorial through lynda.com titled "Ruby on Rails Essential Training". The tutorial is really great, but severely outdated. The tutorial goes through building all the things scaffold automates first, then after you've completed all the work, he shows you scaffold. Now, he is going through the code scaffold creates and customizing it. Really great besides the out of date syntax.

Have any suggestions on ore up to date ROR tutorials I could dig in?

One thing I think I remember is that in Rails < 2.0 (that is, 1.x, or many years old) the scaffold command would examine any table that existed in the database and build a scaffold that used the fields it found there. In 2.0 they changed this behavior. If your tutorial dates from the 1.x days, many of the claims it may make about what the scaffold command will do are now wrong.

Since 2.0 (I think, certainly by now) the scaffold command assumes that there is no table in the database, and generates a migration to create the table. But you have to tell it what fields to create.

As for how to learn it, the best way is to just use it. Read the documentation, try stuff and see what it does. When you get a little further, look at the generator code to really understand what it does.

Good Luck,

-- Will

--
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.

Reply via email to