Month: January 2011

part of the book. I realize that much has changed in 3 years in the Ruby on Rails world. I do what any newb does when they’re stuck, I turn to search. The command is

rails generate model Page

and whah-lah. Output appears on the terminal screen that something has automagically taken place. It can make you giddy. I have to laugh at this stuff, pros will look at this reaction and laugh. I think it’s simply awesome.

I move on and update the project/db/migrate/version_create_pages.rb file so that it has some info to insert as a record into my newly created table.

Thinks for a second and nothing seems to happen. The command line has let me down. I try again. Same result. Huh. You’d think it would change right? Just typing in the same command nothing happens, same result, strange.

Turn to search. Find some info on version numbers. Check database table, nothing new. I use

rails generate migration

don’t do that. It creates a blank migration.rb type file. Database does nothing. I end up deleting file.

Ok, beside the Pick Axe book or The Rails Way, I’m using Apresses Practical Rails:Social Networking Sites to start my project. It’s a bit dated, but should do the trick. It gives me, like they say, a practical application way to learn Rails. The Agile Web Development with Rails published by the folks at Pragmatic Programmers: http://pragprog.com/ is also a good book, but I’m not overly concerned with doing an ecommerce site right now, though I’ll probably tackle that was well just to do some more coding.

Having said all this, the project I’m tackling in the aforementioned book is going to be tweaked a bit to do something I’d like to actually launch into production. The gist of the project will be to learn rails AND do an application that will help the tabletop gaming community. I’ll elaborate more on the tabletop gaming project as I proceed.