This post originated from an RSS feed registered with Ruby Buzz
by Huw Collingbourne.
Original Post: How To Create A Ruby On Rails Blog - Part Two
Feed Title: Ruby In Steel
Feed URL: http://www.sapphiresteel.com/spip.php?page=backend
Feed Description: Developers' Blog of the Ruby In Steel and Amethyst (Adobe Flex) IDEs for Visual Studio
Generate The Comment Model First, create the Comments model. In the Generate window, select model as the Script Action, enter comment as the Script Value, ensure that the Generate radio button is selected and click Go. After a few moments some more files will be added to the Solution Explorer. Load into an editor the file app/models/comment.rb. Edit the class definition to the following (i.e. this should now be the entire contents of this file)… class Comment Open (...)