Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page ix 1st paragraph |
error generated: NameError (uninitialized constant ApplicationController): |
Anonymous | Oct 29, 2009 |
Printed | Page 2 2 |
stale links in two locations on this page |
Patrick MacLachlan | May 16, 2009 |
2.1 Figure 2.1 |
Photos and slides are a one-to-one relationship, but the figure shows slides to photos as one to many. |
Kathy Jacobson | May 20, 2009 | |
2.2 Second code sample, for config/database.yml |
The test database should be photos_test, not photos_development. |
Kathy Jacobson | May 20, 2009 | |
2.3.1 3rd paragraph |
"Rails generated a bunch of files, including a controller and a a few views, ..." |
Kathy Jacobson | May 20, 2009 | |
2.3.1 4th paragraph |
"Rails will use these timestamps to help you apply incremental changes to your database schema you need them, ..." |
Kathy Jacobson | May 20, 2009 | |
2.4.2 the script/console code |
Creating a new slide is not working for me. I did put in the skip_before_filter. All other aspects of this exercise are working, as far as I can tell. |
Kathy Jacobson | May 20, 2009 | |
3.1.2 4th paragraph |
The explanation of Photo Show in 2.1 said that photos could belong to one OR MORE categories, so why is it being set up as a many-to-one relationship? |
Kathy Jacobson | May 20, 2009 | |
3.5.1 Figure 3.1 |
The contents of Figure 3.2 are actually what Figure 3.1 is supposed to have. Whatever is supposed to be in Figure 3.2 does not appear anywhere in the chapter, as far as I can tell. |
Kathy Jacobson | May 21, 2009 | |
4.3 1st paragraph |
"...you can implement one-to-one relationships with belongs_to or has_one." |
Kathy Jacobson | May 22, 2009 | |
4.5 the last console code |
reload! is insufficient to load the newly installed plugin, acts_as_list. I had to restart the script/console. |
Kathy Jacobson | May 22, 2009 | |
5.2 ? |
If you are using Rails 2.3.2 (current as of this writing) and you use the downloaded example files, you will need to rename photos/app/controllers/application.rb to photos/app/controllers/application_controller.rb. Otherwise you receive an error message: uninitialized constant ApplicationController. This rename was not necessary in the chapters where we used just the console. |
Kathy Jacobson | May 22, 2009 | |
5.4 Last paragraph |
Since we have changed the routes.rb file, we'll need to restart the server in order for the changes to be picked up. |
Kathy Jacobson | May 22, 2009 | |
5.5 code for app/views/layouts/application.html.erb |
In the body, in the div, why leave the style info? I thought that is what we were moving to the stylesheet. |
Kathy Jacobson | May 22, 2009 | |
6.2 last sentence |
The code gives the user three options: Play, Edit, and Delete, so to show a slideshow, click Play, not show. |
Kathy Jacobson | May 23, 2009 | |
6.2 last sentence |
Session cookie overflow after only 4 pictures. |
Kathy Jacobson | May 23, 2009 | |
6.3 16rd paragraph |
The code is like this |
Anonymous | Oct 06, 2008 | |
6.3 16rd paragraph |
You have: |
Anonymous | Oct 07, 2008 | |
6.3 first sentence |
"The scaffolding we have for editing a slideshow shows just the slideshow attributes that are stored directly in the slideshows table: the slideshow's name and the creation date." |
Kathy Jacobson | May 23, 2009 | |
6.4 30 |
In the book you have the following line: |
Anonymous | Oct 07, 2008 | |
6.4 explanation of the app/views/slideshows/edit.html.erb code |
"the partial template photo_picker renders slideshow-photo-picker" |
Kathy Jacobson | May 26, 2009 | |
6.4 explanation of add_photo method in app/controllers/slideshows_controller.rb |
In the explanation of the new add_photo method in app/controllers/slideshows_controller.rb, |
Kathy Jacobson | May 26, 2009 | |
6.4 bottom of page (after entering code or even downloading code) if using Rails 2.3.4 |
Using Rails 2.3.4, the session variable is by default tracked with a cookie. It appears that assigning the session variable |
Alan Elliott | Oct 02, 2009 | |
7.3.1.2 paragraph below the box |
"CSV files are useful when you have existing data in a database or spreadsheet that you can export to CSV format. CSV files are useful when you already have input data in that format." |
Kathy Jacobson | May 26, 2009 | |
7.3.1.3 various code samples |
TestCase has been moved from Test::Unit::TestCase to ActiveSupport::TestCase in v. 2.3.2. Make this change in /test/test_helper.rb. |
Kathy Jacobson | May 26, 2009 | |
7.3.1.1 Last paragraph |
Even though I am using SQLite my test.sqlite db was empty until I did this (rake db:test:clone). That is, Rails did not "build the database structure before each test run" as the text stated. I am using Rails 2.3.2. |
Kathy Jacobson | May 26, 2009 | |
Printed | Page 10 Top of page |
In order to print the has enabled by the mods in greeting_controller.rb, one has to create a database in their database application. If this is not done, the has will not be displayed. An error about being unable to get to a database will appear. |
r3dshirt | Dec 24, 2008 |
Printed | Page 13 Line 10 |
There is a typo in some instruction on page 13 that make the instructions not work. On line 10, it states: |
Anonymous | Nov 09, 2009 |
Printed | Page 14 3rd, 4th, 5th paragraphs |
This section is describing the simple techniques of expressions and scriptlets. There are three sentences, each ending in a colon followed by a bit of code demonstrating one of the techniques. |
John Nolt | Jan 02, 2010 |
Printed | Page 20 code snippet at top of page |
In the code snippet at the top of the page, describing how to alter the yml file for MySQL, this appears: |
John Nolt | Jan 02, 2010 |
Printed | Page 25 Paragraph 4 |
I have Rails 2.2.2. |
Solomon Hamid | Apr 29, 2009 |
Printed | Page 34 2nd paragraph and 3rd paragraph |
the word "text" in the path text/fixtures... should be "test" |
Dave | Nov 20, 2009 |
Printed | Page 34 2nd paragraph |
In the sentences following there are two errors: |
Duncan Smith | Mar 21, 2010 |
Printed | Page 48 Figure 3-1 |
The Figure 3-1 does not represent "Rails supports single-table inheritance between an entity (Person) and a subclass (Photographer". |
Anonymous | Nov 01, 2008 |
Printed | Page 48 First paragraph below figure 3-1 |
The code: |
Anonymous | May 01, 2010 |
Printed | Page 48 First line of code below Fig 3-1 |
There is an instruction: |
Anonymous | May 31, 2010 |
Printed | Page 50 Figure 3-2 |
The Figure 3-2 does not present what text supposed to explain. |
Anonymous | Nov 01, 2008 |
Printed | Page 50 Figure 3-2 |
I believe under the Class: Photographer < Person portion of the diagram, type should be "Photographer". |
Anonymous | Nov 20, 2008 |
Printed | Page 79 3rd paragraph |
This page mentions a config/database.yml.example file that needs to be copied but this file cannogta be found anywhere in the zip file |
Dave | Nov 20, 2009 |
Printed | Page 90 first paragraph |
States "the code dealing with pagination...has been removed", I do not believe there was any pagination code in there to start. Also see the photos-after-chapter-4 under example code. |
Anonymous | Nov 25, 2008 |
Printed | Page 105 2nd paragraph |
<%= periodically_call_remote :update => "slides", |
Peter Ritchie | Oct 31, 2009 |
Printed | Page 105 2nd paragraph |
The line for periodically_call_remote results in a routing error when using rails 3. |
Anonymous | Apr 16, 2011 |
Printed | Page 109 This exercise |
My ajax calls to the server to sort the pictures fails, the error returned in the call is "Missing template slideshows/update_slide_order.js.erb in view path". I no not see a reason to create that file, no mention of it in the text. When I create an empty file with that location the example works fine. I could not see a reason for this error. |
Anonymous | Nov 30, 2008 |
Printed | Page 110 code block |
The ") if slide" conditional is repeated twice, looks like a syntax error and it causes my runtime to exception out |
Anonymous | Nov 30, 2008 |
Printed | Page 110 1st code block |
the code block is pretty messed up. It reads: |
Dave Jezak | Nov 24, 2009 |
Printed | Page 111 Figure 6-3 |
It looks like fig 6-3 is an image of the application after more styling was added on pages 117-118. |
Anonymous | Nov 30, 2008 |
Printed | Page 114 top line |
The line states "notice...drop_receiving_element and observe_field", observe_field has yet to be added to anything, I think the first time it is shown is page 118. |
Anonymous | Nov 30, 2008 |
Printed | Page 114 last bold line |
It references the line @photos = unused_photos(@slideshow) the line is actually @photos = @slideshow.unused_photos |
Anonymous | Dec 03, 2008 |
Printed | Page 115 1st line |
def unused_photos(slideshow) |
Dave Jezak | Nov 24, 2009 |
Printed | Page 131 Second bold line |
You state at the start of this section: "Let's walk through the code a line at a time", then you reference "fixtures :photos", which is *not* in the above code we are walking through but added immediately following. |
Anonymous | Dec 03, 2008 |
Printed | Page 153 #2 in the list of steps |
One of my clients is reading the book to learn rails and found a bug |
Anonymous | Oct 20, 2008 |
Printed | Page 153 Line item #2 |
"...file to C:\Windows\system." should say "...file to C:\Windows\system32." |
David Corey | Aug 04, 2009 |
Printed | Page 153 Line items 2 & 4 |
The instructions will not result in the successful installation of SQLite. |
David Corey | Aug 05, 2009 |