small medium large xlarge

Errata for Crafting Rails Applications

 

The latest version of the book is P1.0, released almost 5 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.

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

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (17-Jun-13)
#52022
Paper page: 11
The suggestion in the online Errata to remove render_to_string does cause the test to pass, but it does not render a .pdf file as it should. The pr...more...
  • Reported in: B3.0 (16-Feb-11)
#46407
PDF page: 13
The HEading of what is really Chapter 1 create our own Renderer is listed as Chapter 4 Create our own Renderer in the Kindle Version. Location 121-129...more...
  • Reported in: P1.0 (20-Sep-11)
#47604
PDF page: 13
update Enginex gem .. $ rake test rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) `include Capybara` is deprecated plea...more...
  • Reported in: P1.0 (16-Nov-11)
#47953
PDF page: 22
Running with: ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-darwin10.8.0] Rails 3.0.10 capybara (1.1.2) rake test fails with: encoding...more...
  • Reported in: P1.0 (20-Sep-11)
#47603
PDF page: 22
latest test run doesn't pass ... rubyrails:pdf_renderer (ruby-1.9.2@rails310)$ rake test rake/rdoctask is deprecated. Use rdoc/task instead (in...more...
  • Reported in: B3.0 (27-Mar-11)
#46686
PDF page: 26

... and it breaks down in two main steps:

would read better as

... and it breaks down into two main steps:--Andreas Kemkes

  • Reported in: B3.0 (02-Apr-11)
#46729
PDF page: 33

... our first test pass.

should read

... our first test passes.--Andreas Kemkes

  • Reported in: B3.0 (18-Mar-11)
#46608
PDF page: 35
Last paragraph. First sentence. "attributes methods" should be "attribute methods" (i.e. without the s) or (suggestion) "Attribute Methods" g...more...
  • Reported in: B3.0 (02-Apr-11)
#46730
PDF page: 35

... uses attributes methods extensively.

should read

... uses attribute methods extensively.--Andreas Kemkes

  • Reported in: B3.0 (18-Mar-11)
#46609
PDF page: 37

Third paragraph. Second line.

"generate an unique url" => "an" should be 'a'--Kenneth Lindsey Calamay

  • Reported in: B3.0 (02-Apr-11)
#46731
PDF page: 37
... and two other methods required by Active Model as well: ... should read ... as well as two other methods required by Active Model: ...--Andr...more...
  • Reported in: P1.0 (17-Apr-11)
#46891
PDF page: 44
"After running `rake test`, all tests should be green again", but they're not! We've now made a template for our mail form to use, but never told it t...more...
  • Reported in: B3.0 (14-Feb-11)
#46402
PDF page: 44
Where: Download mail_form/6_delivery/lib/views/mail_form/notifier/contact.text.erb It is not clear from the text or the above path where this shoul...more...
  • Reported in: P1.0 (23-Nov-12)
#50196
Paper page: 46
at least with rails 3.2.9 assert_equal ActionView::Template::Handlers::ERB, template.handler has to be changed to assert_kind_of ActionView::Templa...more...
  • Reported in: P1.0 (23-Nov-12)
#50197
Paper page: 47
at least with rails 3.2.9 the sql_template.rb needs the line attr_accessible :body, :format, :handler, :locale, :partial, :path for the tests to p...more...
  • Reported in: P1.0 (23-Nov-12)
#50198
Paper page: 51

"As you learned in the code on page 59,..." should be "As you learned in the code on page 44,...".--Finn MacCool

  • Reported in: B3.0 (02-Apr-11)
#46733
PDF page: 52

... keeping an eye in performance.

should read

... keeping an eye on performance.--Andreas Kemkes

  • Reported in: B3.0 (23-Mar-11)
#46652
PDF page: 61

First sentence after the comma

"some functionals tests" should be
"some functional test" i.e. without the s--Kenneth Lindsey Calamay

  • Reported in: B3.0 (23-Mar-11)
#46653
PDF page: 61
The sentence just before the last code snippet: "Let's do it by add the following line to UsersController" should be "Let's do it by adding the f...more...
  • Reported in: P1.0 (17-Apr-11)
#46892
PDF page: 63
""" == The Resolver's Cache As your learned in the code on page 71 ActionView::Resolver’s find_all method… """ I'm on page 63, so I haven'...more...
  • Reported in: P1.0 (26-Jun-11)
#47224
PDF page: 64

To prove that Ruby in fact uses Object#hash to localize entries,..

localize -> locate
--John Warwick

  • Reported in: P1.0 (24-Apr-11)
#46929
Paper page: 72

"Dual templates **rocks**!" —there's a subject-verb disagreement there. Should be "rock."--Eric

  • Reported in: P1.0 (05-May-11)
#47023
Paper page: 74

First paragraph, last sentence reads "configure it to create .merb templates instead .erb" —probably should be "instead of .erb"--Eric Hayes

  • Reported in: P1.0 (23-Nov-12)
#50200
Paper page: 91
the test suite isn't green as promised. i get the following error: E:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/active...more...
  • Reported in: B3.0 (02-Apr-11)
#46732
PDF page: 101
"mongo database" should be replaced by "MongoDB database" "Mongo database" should be replaced by "MongoDB database" Pages 101(2), 116(2), 117, 118...more...
  • Reported in: P1.0 (02-Apr-11)
#46734
PDF page: 103

... but there is not such file ...

should read

... but there is no such file ...--Andreas Kemkes

  • Reported in: P1.0 (09-Jun-11)
#47175
PDF page: 108
I tried "Hello Rack" application with Rack 1.2.3, which was installed by Bundler for Ruby on Rails 3.0.7. (I understand that the book is based on Ruby...more...
  • Reported in: B3.0 (04-Mar-11)
#46512
PDF page: 109
The Rack application on this page does not run on Ruby 1.9.2. The error is "Response body must respond to each". Ruby 1.9 (unlike 1.8) apparently does...more...
  • Reported in: P1.0 (16-May-12)
#49335
PDF page: 131
I cannot get why this source code appears here. >> Download responders/2_responders/test/dummy/app/views/layouts/application.html.erb <p class="n...more...
  • Reported in: P1.0 (10-Aug-11)
#47359
PDF page: 142
Hi, I may have missed something but when I run "bundle exec rails g responders:install" nothing happens and I have "Could not find generator respon...more...
  • Reported in: B3.0 (19-Mar-11)
#46617
PDF page: 158
On: autoload :App, "translator/app" It should be: require 'translator/app' autoload :App, "translator/app" The missing require will cause...more...
  • Reported in: B3.0 (15-Mar-11)
#46584
PDF page: 160

3rd code snippet. 2nd line.

.responds_to?(:call)
should be
.respond_to?(:call) -> without the s in respond(s)--Kenneth Lindsey Calamay

  • Reported in: P1.0 (12-Dec-12)
#50362
PDF page: 213
(Location 213 of 4082 in Kindle): First "rake test" bombs with this error: rake aborted! GONE /Users/cclogicimac/rails_projects/crafting_rails/pdf...more...
  • Reported in: P1.0 (12-Dec-12)
#50363
PDF page: 213
(213 of 4082 on Kindle) NOTE! You can get around this error by opening the Rakefile and changing line 10 to be require 'rdoc/task' (instead of rqui...more...