GrailsInAction / graina2

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

MEAP ch1 v12: *Minor* comments #57

Closed tikeswar closed 10 years ago

tikeswar commented 10 years ago

Just finished going step-by-step with ch1 and thought of listing out some minor typos/comments (from a beginner's perspective).

GiA2E_meap_ch01_v12

1. Please add page numbers in "brief contents". I think it will done in the final book, but just in case.

2. Pg. 15 (towards the bottom) It reads To make your layout template in liting 1.3 ... It should read To make your layout template in liting 1.2 ...

3. Pg. 16 (towards the top) It reads In listing 1.3 ... It should read In listing 1.2 ...

4. Pg. 17 (Right under Section 1.4) It reads allowing users can add ... It should read allowing users to add ...

5. Pg. 20 Can the output from println be distinguished somehow from the code?

6. Section 1.5.2, Pg. 23 The last #A in the code illustration belongs to the class, and is not required.

7. Pg.25 The skeleton quote service is not exactly the same. I am using Grails version 2.3.1, and it has couple of extra lines compared to the one in the book: import grails.transaction.Transactional code>@Transactional</code

8. Section: 1.6.2 Going Web 2.0: Ajaxing the view (Pg. 27- 29) Clicking on the "Admin" menu gives a 404 error.

Sorry about nitpicking, but had jotted down so wanted to mention it anyway. Kindly ignore if needed (definitely not a high priority). Regardless, awesome reading so far!

pledbrook commented 10 years ago

Thanks, these can be factored in during our pre-production process.

pledbrook commented 10 years ago

All fixed now. Thanks again for the report. I've marked the println() output by prefixing it with >>> and added a comment to explain this. Hopefully that's sufficient.

pledbrook commented 10 years ago

Just to clarify, this is what the first example looks like now:


Let’s use another dynamic method, count(),to make sure that your data saved to the database correctly (we show the script output after >>>):

println qotd.Quote.count()
>>> 3