Errata
Submit your own errata for this product.
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
| Version | Location | Description | Submitted By |
|---|---|---|---|
| Printed | Page ix 1st paragraph |
error generated: NameError (uninitialized constant ApplicationController): |
Anonymous |
| Printed | Page 2 2 |
stale links in two locations on this page |
Patrick MacLachlan |
| Safari Books Online | 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 |
| Safari Books Online | 2.2 Second code sample, for config/database.yml |
The test database should be photos_test, not photos_development. |
Kathy Jacobson |
| Safari Books Online | 2.3.1 3rd paragraph |
"Rails generated a bunch of files, including a controller and a a few views, ..." |
Kathy Jacobson |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 4.3 1st paragraph |
"...you can implement one-to-one relationships with belongs_to or has_one." |
Kathy Jacobson |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 5.7 code for displaying the thumbnails |
It would have been nice if you'd included an explanation of the minus sign in the closing delimiters. I found out it's to strip whitespace in the HTML to the outside of that side, but why did you not include it on both ends of each delimiter, so it would strip whitespace on both sides? <%- ... -%> |
Kathy Jacobson |
| Safari Books Online | 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 |
| Safari Books Online | 6.2 last sentence |
Session cookie overflow after only 4 pictures. |
Kathy Jacobson |
| Safari Books Online | 6.3 16rd paragraph |
The code is like this |
Anonymous |
| Safari Books Online | 6.3 16rd paragraph |
You have: |
Anonymous |
| Safari Books Online | 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 |
| Safari Books Online | 6.4 30 |
In the book you have the following line: |
Anonymous |
| Safari Books Online | 6.4 explanation of the app/views/slideshows/edit.html.erb code |
"the partial template photo_picker renders slideshow-photo-picker" |
Kathy Jacobson |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| Safari Books Online | 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 |
| 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 |
| 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 |
| Printed | Page 25 Paragraph 4 |
I have Rails 2.2.2. |
Solomon Hamid |
| Printed | Page 34 2nd paragraph and 3rd paragraph |
the word "text" in the path text/fixtures... should be "test" |
Dave |
| 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 |
| Printed | Page 50 Figure 3-2 |
The Figure 3-2 does not present what text supposed to explain. |
Anonymous |
| Printed | Page 50 Figure 3-2 |
I believe under the Class: Photographer < Person portion of the diagram, type should be "Photographer". |
Anonymous |
| 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 |
| 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 |
| Printed | Page 105 2nd paragraph |
<%= periodically_call_remote :update => "slides", |
Peter Ritchie |
| 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 |
| 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 |
| 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 |
| 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 |
| Printed | Page 114 last bold line |
It references the line @photos = unused_photos(@slideshow) the line is actually @photos = @slideshow.unused_photos |
Anonymous |
| 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 |
| 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 |
| Printed | Page 153 Line item #2 |
"...file to C:\Windows\system." should say "...file to C:\Windows\system32." |
David Corey |
| Printed | Page 153 Line items 2 & 4 |
The instructions will not result in the successful installation of SQLite. |
David Corey |
