We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P1.1, released over 2 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

Key: Typo Tech. Error Suggestion Not a problem Next edition

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:  

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
0
#49699: Gemfile.lock should be included with the code, so that bundle install will always work intended with gem versions locked down, even when newer...more...
P1.1
16-Aug-12
0
#49701: More functional controller code (for crud and site navigation) can be included so that the reader can navigate to and see the various views mo...more...
P1.1
16-Aug-12
0 0

#49797: In the code, there is a redundant migration 20110926060144_create_designers.rb
which conflicts with 20111008052704_devise_create_designers.rb--William Ko

P1.1
12-Sep-12
0
#49349: Example code's Gemfile doesn't set a version for Devise and 2.1.0 introduces breaking changes, causing the migration to fail. "~> 2.0.0" fixes...more...
P1.1
17-May-12
1
#50191: A few people have mentioned the problem with Devise. One user (Jean-Charles Sisk) suggests using gem 'devise' '~ 2.0.0' in the Gemfile but...more...
P1.1
22-Nov-12
1
#51377: In the epub version (iBooks on iOS 6), code listings have a consistent problem showing html tags. Every line ending with '> or "> (a single or...more...
P1.1
24-Apr-13
8
#49040: In the code download for the book, I notice that you include the 2 html fragments in code/layout/boilerplate. Since these are not linked to i...more...
P1.0
31-Mar-12
10
#49078: Usually your writing style is the classic "tell me what you are going to tell me, tell me, then tell me you told me", which is an excellent wa...more...
P1.0
07-Apr-12
11
#51540: normalize.css "and place it into our app/assets/stylesheets directory". Since that stylesheet is "owned by outside entities" (text from Rails ...more...
P1.0
18-May-13
15

#49201: In the sample code it says to
<%= render 'layout/header' %>
when it should be layouts
<%= render 'layouts/header' %>--Dexter Liu

P1.0
26-Apr-12
15
#49033: In the paragraph immediately preceding the html for _header.html.erb, last sentence, you say to change the file to have the following contents...more...
P1.0
30-Mar-12
15
#49041: In the listing for app/views/layouts/application.html.erb, since the image for tagline.png is going to appear in Figure 4., you should probabl...more...
P1.0
31-Mar-12
15
#49102: In the sample code the following line is used <meta charset="utf-8"> the tag is never terminated it should probably say <meta charse...more...
P1.1
12-Apr-12
17

#50435: when running rake setup on the layout project get this error: rake aborted! undefined method 'client_id' for nil:NilClass

P1.0
04-Jan-13
17
#49280: In this page we read "Looking at the header, we see it’s 78 pixels tall" but, where do we see it? I can't find any figure or specification in ...more...
P1.1
04-May-12
20-21
#49037: In the code for app/views/layouts/application.html.erb, the lines for the image_tag have not been mentioned before so it is somewhat of a surp...more...
P1.0
31-Mar-12
24

#49824: Not opening UL tag, not closing NAV tag. Here's a pic: instagr.am/p/PsGLfjA0L4/ --Nando Vieira

P1.1
19-Sep-12
26
#49702: No css definition is shown or mentioned for class="ir" which is used in the templates on page 26 and others. For those who attempt to reconstr...more...
P1.1
16-Aug-12
26
#49084: The layout on page 20 uses render STRING for rendering the header and the footer partials. But then there are partials in some places that are...more...
P1.1
08-Apr-12
28
#49700: A designer/_designer.html.erb partial template is required for <%= render @project.designers %> to work, and the view containing it to render ...more...
P1.1
16-Aug-12
32

#52028: I think the file navigation_helper.rb needs a module wrapper

module NavigationHelper
...
end--Bob Gustafson

P1.1
18-Jun-13
32

#52031: You have " with the right tab activated:"

I would say " with the correct tab activated:"--Bob Gustafson

P1.1
18-Jun-13
40

#49170: "shows an examploe of the application window"

(sorry for reporting a trivial typo, but I really just wanted to play with the 'report erratum' tool)--Ben Taitelbaum

P1.1
21-Apr-12
40

#49183: 4th paragraph, last sentence has the word 'examploe' instead of 'example'--Greg Pederson

P1.1
23-Apr-12
49
#51233: This is a grammatical mistake with the word "creation"...It should read "...our enterprise users is fine-grained control of creating permissio...more...
P1.1
05-Apr-13
49 35

#49080: the edit_creations_path(@creation) should be edit_creation_path(@creation)--Romeo Giezendanner

P1.1
07-Apr-12
50

#51132: In the penultimate paragraph the Haml templating language is refered to in all caps. According to haml-lang.org it's Haml, not HAML.--Katrina Owen

P1.1
25-Mar-13
54

#51816: Got this line "shows an examploe of the application window". --Nigel Lowry

P1.1
03-Jun-13
57
#49094: The method 'creation_reference' refers to a field, 'format' on the creation object i.e. #{creation.format.upcase}. That field is not in the mo...more...
P1.1
09-Apr-12
59
#49085: When the text introduces the explicit alt attributes for images, it uses a wording that I think may suggest to the reader that the image tags ...more...
P1.1
08-Apr-12
60
#49076: when browser localhost:3000/creations/ , it gets an errors: undefined method `default_image?' for #<Creation:0x00000005249640> Extracted ...more...
P1.0
06-Apr-12
63
#49089: The name of Rails components has a space. ActiveRecord (fixed-width font), is a Ruby module, whereas Active Record (regular font) is the na...more...
P1.1
09-Apr-12
69
#49717: The if-else block (<% if @creation.default_image? %>) within _creation.html.erb on Page 69 does not continue from the state where it was last ...more...
P1.1
21-Aug-12
70

#49091: The helper switching_creation_tag_for is a extraction of content_tag_for in the previous page, but it does not generate the data-id attribute.--Xavier Noria

P1.1
09-Apr-12
73
#49290: The test code uses an older version of Devise, so the migrations fail with an upgrade message from devise 2.0.4. If there is an older version...more...
P1.1
06-May-12
74
#49734: The line: *= require formtastic needs to come before the other sprocket directives that are meant to override the default styles that come w...more...
P1.1
23-Aug-12
80

#49309: In interested.css.scss,
font-style: bold;
should be
font-weight: bold;--Graeme McLean

P1.1
12-May-12
80

#49310: Also in interested.css.scss,
font-italic: italic;
should be
font-style: italic;--Graeme McLean

P1.1
12-May-12
85
#49732: The styles used for section#sidebar to illustrate the popout mixin, are in conflict with those already defined on pages 24-25. Note that this ...more...
P1.1
23-Aug-12
90-91
#49731: The styles used to create the icons using sprites, are not working as stated in the book. I found that the following has to be added: p.spr...more...
P1.1
23-Aug-12
95
#49171: The description of why we need to list the eot file twice (once with ?iefix) is confusing, because it keeps referencing "the local() value", b...more...
P1.1
21-Apr-12
95 82

#49086: h3 {
color: $dark-green
font: italic bold 20px $accent-font;
}

; behind $dark-green is missing--Romeo Giezendanner

John M Athayde says: Actually, this should be dark-blue anyways. But it is missing the semi-colon. Adding a separate errata for the content error.
P1.1
08-Apr-12
95 82

#49087: $dark-green should be $dark-blue--Romeo Giezendanner

P1.1
08-Apr-12
95 82

#49090: In the CSS selector for h3, $dark-green is not the variable we should be working with, but $dark-blue. --John M Athayde

P1.1
09-Apr-12
102

#49803: Since 'View All Comments' is shown by default, they should be hidden on page load:

$(document).ready ->
comments.slice(3).hide()--William Ko

P1.1
12-Sep-12
104 91

#49088: In code-file artflow/css/app/assets/stylesheets/icons.css.scss the -ms-filter attribute are the char " wrong.--Romeo Giezendanner

P1.1
08-Apr-12
107
#49174: In "...for the semantic_form_for() we learned about in Formtastic, on page 138," "learned" should be changed to "will learn" since it refers t...more...
P1.1
22-Apr-12
114

#49093: In Code File: artflow/js/app/views/creations/show.html.erb Version v2 and v3 on line 13 is %> missing--Romeo Giezendanner

P1.1
09-Apr-12
125 113
#49095: running the cucumber test: artflow/js/features/session.feature fails with the following Error: ActionView::Template::Error: undefined method `...more...
P1.1
10-Apr-12
128

#49100: In the code snippet at the bottom of the page some tabindex are strings, and some others integers.--Xavier Noria

P1.1
11-Apr-12
129

#49411: wondering if this line is a typo:

chad> ruby script/generate model User

shouldn't the command be "rails" rather than "ruby"?--William E Den Beste

P1.1
06-Jun-12
129

#49412: looks like the line:

chad> rake migrate

should actually be:

chad> rake db:migrate--William E Den Beste

P1.1
06-Jun-12
133

#49101: Search for "object>", with a spurious greater than ">".--Xavier Noria

P1.1
11-Apr-12
138

#49175: Change Formtatstic -> Formtastic in "Adding Formtatstic to our Rails application is easy."--Ben Taitelbaum

P1.1
22-Apr-12
140
#49176: "If we change the attribute to type="email", we end up with a space bar broken into three buttons: the space bar, the @ symbol, and a period. ...more...
P1.1
22-Apr-12
150 138

#49098: <%= f.buttons %> should be <%= f.actions %> with formtastic (2.2.0)--Romeo Giezendanner

P1.1
11-Apr-12
163 0
#49800: various problems with the code for the mobile chapter: 1. redirect_mobile in PagesController should redirect to project_creations_path inst...more...
P1.1
12-Sep-12
164
#49730: In Section 7.1, it reads: "When we set it up in Chapter 1, Creating an Application Layout, on page 1, the page wrapper was 960 pixels wi...more...
P1.1
23-Aug-12
175 0

#49798: The mime_type :mobile may not be needed when mobile-fu is used later in the chapter.--William Ko

P1.1
12-Sep-12
179 0
#49799: mobile-fu does not work properly with jquery-mobile without further customization: Workaround: Step 1: add the following before_filter t...more...
P1.1
12-Sep-12
184
#49863: I am using the ebook version, so it's 184 of 6628 (3%). In the first paragraph under the heading 'HTML5 and Semantic Markup', there is a stray...more...
P1.1
25-Sep-12
190

#49104: The Link in footnote 13. should be: github.com/benlangfeld/mobile-fu--Romeo Giezendanner

P1.1
13-Apr-12
192
#49003: You state that "Since jQuery Mobile includes a style sheet and images, we need to tell Rails to serve them as well. We do that with a coupl...more...
Bruce Williams says: Thanks for this -- excellent catch. This is a larger edit ('provide' is mentioned in a couple places), and should definitely be fixed.
P1.0
28-Mar-12
192

#49105: The file: vendor/assets/javascripts/jquery.mobile.js should be: app/assets/javascripts/jquery.mobile.js--Romeo Giezendanner

P1.1
13-Apr-12
207
#49823: assorted issues with Chapter 9 (vanity, deadweight) page 209: collecting should be set to true for development to observe meaningful resu...more...
P1.1
19-Sep-12

Stuff To Be Considered in the Next Edition

PDF Paper Description Found in Fixed in
10
#49036: I would think an explanation of the options you chose for modernizr would help people understand what is going on. I went to the modernizr do...more...
John M Athayde says: Wrote this on the blog. Will consider adding a similar explanation into the text for the next major revision: http://www.therailsview.com/2012/04/modernizr-why-we-do-the-config-we-do/
P1.0
30-Mar-12
107
#49065: In reorganizing the book in tech review, the JS chapter now occurs before the forms chapter. This causes the formtastic form to be made into a...more...
P1.0
05-Apr-12