Here we enhance our Ruby web log so that readers can add comments. In the process we will learn how to deal with model relationships in Rails, as a single post can have zero or more comments.
Setting Things Up
I'm going to begin from where I left off in my previous post: Rails and Database Migrations. Alternatively, you can start from BlogDemo.zip, which is the completed project from that post...
After my first Ruby blog entry, David Rupp commented that I should do certain things the more conventional way, like using database migrations rather then SQL scripts. So here's a reprise of that entry, doing just that plus a couple of other minor improvements.
Setting Things Up This time around I'm going to use Instant Rails. All of the instructions for setting up Instant Rails and NetBeans are...