GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 92 forks source link

Listing 5.1 Initial attempt at generating sample data #18

Closed philfriesen closed 10 years ago

philfriesen commented 11 years ago

Could you emphasize that the Bootstrap.groovy file in the GitHub repository must be downloaded for the tests in this chapter to work?

I had copied this listing to create my own Bootstrap.groovy file and practiced creating my own sample data.

My approach in working through the book is to copy code from the book's listings and use the command line to ensure I am understanding every step it takes for all files to appear in the project. I'm not just copying all project files from the repository and then reading the chapter. So reminders about which repository files are required or assumed to be downloaded would be helpful. Thanks!

pledbrook commented 11 years ago

Good point. Will add that.

philfriesen commented 11 years ago

What do you think of providing the complete GitHub URL to the class shown in every listing? You have numbered notes after every listing. If the last note after every listing was the URL, it would be awfully convenient to click, copy, and paste locally.

philfriesen commented 11 years ago

I'm having second thoughts about this approach. I'm going to start a new issue about downloading code for each chapter.

pledbrook commented 10 years ago

I added the emphasis. The URL for the download was already in a footnote. Hopefully it's readily accessible in the PDF form.