’
By Developers, For Developers
PDF Pg | Paper Pg | Type | Description | Fixed on | Comments |
---|---|---|---|---|---|
2 | TYPO | “If you’re a intermediate…” should read “If you’re an intermediate…” | 2010-12-11 | ||
8 | TYPO | “customize render toaccept :pdf as…” should read “customize render to accept :pdf as…” | 2010-12-11 | ||
29 | TYPO | “information sent through a form in the controller and delivery it to a recipient” should be “information sent through a form in the controller and deliver it to a recipient” | 2010-12-11 | ||
31 | B | SUGGEST | Before we run our test suite again, we need to ensure that MailForm::Base is loaded. Technically test passes even without autload stuff because MailForm::Base loads the Base. | 2010-12-11 | |
13 | ERROR | After a clean ‘enginex pdf_renderer’ command i was not able to call ‘rake -T’ as talked about on page 13. I got the error: “Could not find gem ‘ruby-debug (>= 0.10.3, runtime)’ in any of the gem sources listed in your Gemfile.” I had to call ‘bundle install’ before the ‘rake -T’ task. (The bundle install command is atm introduced at page 15.) | 2010-12-11 | ||
38 | ERROR | the method ‘persisted?’ does not belong in the listing here yet. If readers type this method over while walking through the chapter they will not see the test fail as described on page 39-40. | 2010-12-14 | ||
9 | TYPO | In the last sentence of the last paragraph, I think “you’ll should read the chapters in the order they are presented.” should be “you should read …” | 2010-12-11 | ||
168 | TYPO | footnote URL has a double http prefix and the link itself is broken. | 2010-12-14 | ||
147 | TYPO | See first bullet point: | 2010-12-14 | ||
149 | SUGGEST | Bullet point with “I18n::Backend::ActiveRecord”: i think it’s not really clear for most readers what you mean with ‘(deprecated since 0.5 versions)’ because it’s not really clear you’re talking about the vendored I18n gem inside rails. | 2010-12-14 | ||
149 | TYPO | In the bullet points below, in the first one starting with “I18n::Backend::Cache”. | 2010-12-14 | ||
24 | TYPO | Paragraph just above the bullets: “Action Controller furthers extends” “furthers” should be “further” | 2010-12-14 | ||
80 | ERROR | First line: “When we run the test suite, our new test passes” | 2010-12-14 | ||
79 | SUGGEST | It might be worth mentioning at the start of the chapter that RDiscount does not work on Windows | 2010-12-15 | ||
7 | TYPO | 3rd graph 4th sentence: Then there are those developers that prefer RSpec to [u]of[\\u] Test::Unit. remove extraneous “of” | 2010-12-14 | ||
8 | TYPO | Says “customize render toaccept :pdf as an option” - needs a space ‘twixt “to” and “accept”. There may BE a space in the XML, but something about the fact that both ’render’ and ‘:pdf’ are in a different style may be eating it. | 2010-12-15 | ||
8 | TYPO | Says “receives data through a form and send it to ” - should be “sends”, not “send” | 2010-12-15 | ||
147 | TYPO | In the paragraph below the code sample; “This means an application can do everything an engine do, plus some specific behavior.” I think it has to be ‘… an engine does, … ’. | 2010-12-15 | ||
154 | ERROR | On page 154 the reader has to implement the Translator reload! class method but it’s already implemented/described in the code sample at page 151. | 2010-12-15 | ||
45 | ERROR | Using Ruby 1.9.2 the error described does not occur (ArgumentError: wrong number of arguments (1 for 0)) Was banging my head against my desk trying to figure out which model included an initialize method until I discovered BasicObject#initialize snuck into Ruby 1.9. Talk in ruby-lang was that it will be removed until 1.9.3 | 2010-12-15 | ||
133 | ERROR | in the bottom source code sample; require “responders/http_cache” and include HttpCache should be left out. They are created on follow up pages and make the tests fail at this point. (i think this is a recurring problem with a lot of code samples, i guess this is some automation bug?) | 2010-12-16 | ||
131 | SUGGEST | Maybe you could dedicate a paragraph in this chapter to configuring custom Responders to single (or a set of) controllers instead of global application usage. class UsersController < ApplicationController Is there also an easy way to configure the written Responder engine to globally hook or not? (Could be extra info on the above) | 2010-12-16 | ||
147 | TYPO | bootstraping > bootstrapping | 2010-12-16 | ||
36 | TYPO | test below is already added in code shown on page 34 Let’s add a small test case to our suite showing these methods and what they return: Download mail_form/4_compliance/test/compliance_test.rb | 2010-12-16 | ||
7 | TYPO | “Then there are those developers that prefer RSpec to of Test::Unit.” It should be “to” instead of “to of”. BTW there was no report erratum link on page 7 :) | 2010-12-16 | ||
76 | ERROR | Source for handlers/test/dummy/app/controllers/handlers_controller.rb should include an index action to get the test failure described on page 77 class HandlersController < ApplicationController | 2010-12-17 | ||
80 | TYPO | should be | 2010-12-17 | ||
98 | ERROR | I am running Ubuntu 10.10 64bit after installing Mongo from the Ubuntu repositories I had to use mongo and bson_ext version ‘1.1.5’ gems to get mongo to work | 2010-12-21 | ||
13 | SUGGEST | rake -T is suggested as a command before bundle install. Calling rake before bundle install triggers errors, e.g., missing Capybara and other gems. Perhaps have the reader call bundle first (and for newbies indicate that they should cd into pdf_renderer). | 2010-12-20 | ||
94 | 94 | TYPO | … but the application has the final world about it. world -> word | 2010-12-20 | |
85 | TYPO | There are two references to page “??”. Page number is missing. | 2010-12-29 | ||
82 | SUGGEST | Instead of using email.parts[0] and email.parts[1], email.text_part and email.html_part would be clearer to understand | 2010-12-20 | Thanks for the suggestion. The order is important to assert, otherwise some clients won't show the HTML part properly. I changed the text to add this observation. | |
Prefa | TYPO | Then there are those developers who prefer RSpec to —of— Test::Unit. | 2010-12-22 | ||
31 | TYPO | There is a small grammar issue with the “we annotates” bit of the following: “So when we want to load MailForm we annotates that it has a constant called Base which is defined in mail_form/base.rb.” I would phrase it like the following: “So, when we want to load MailForm, we note [annotate] its constant Base. Base is defined in mail_for/base.rb.” or something like that. | 2010-12-25 | ||
39 | ERROR | The method persisted? is already defined on page 38. It should be removed on page 38 to provide the link flow on page 39. | 2010-12-29 | ||
7 | TYPO | If you’re a intermediate | 2010-12-29 | ||
8 | TYPO | This chapter starts a series of discussion | 2010-12-29 | ||
9 | TYPO | and expose them for further analysis through a web interface. | 2010-12-29 | ||
9 | TYPO | Capybara’s’ | 2010-12-29 | ||
12 | TYPO | we modify the render method to accept :pdf as option | 2010-12-29 | ||
12 | TYPO | as we will see in next chapters. | 2010-12-29 | ||
21 | ERROR | It seems to be a problem when adding the new pdf_rederer. When I run the tests I get the following error: This line is causing the error: I think it is trying to render a template when the “render_to_string” method is called, because when I remove the method call in this line, the test passes. nice book José, congratulations. | 2010-12-29 | ||
87 | ERROR | The problem #46064 was changed to page 87: two ocurrences of ‘??’ references | 2010-12-29 | ||
115 | ERROR | config.sql_metrics.mute_middleware = %r{^/admin} should probably read as config.sql_metrics.mute_regexp = %r{^/admin} | 2011-01-05 | ||
125 | ERROR | The table is not fitting in the PDF page | 2011-03-14 | ||
17 | 17 | ERROR | Before to be able running “rake test” the “bundle install” should be run. Because the audience is intermediate or advance developers this is not a big deal, but I should mentioned this. | 2011-01-12 | |
147 | SUGGEST | I just finished translating my Rails app into 8 different languages. The I18n stuff is fantastic, but the manual translation is not fun. You might want to mention services like Wordchuck that can auto-submit your language files to Google Translate. If you want them professionally reviewed & translated, they can do that too. I used it to translate our payment pages into 8 languages with a few clicks. | 2011-01-12 | ||
17 | SUGGEST | At the point of running rake test an error occured saying Also wondering why enginex at all? Perhaps I’ll post in the forum about that. | 2011-02-08 | ||
103 | TYPO | When moving the model to the app/models folder the module declaration for SqlMetrics needs to be removed. LoadError (Expected /home/jamie/Development/rails/sql_metrics/app/models/metric.rb to define Metric): (I’m uing ruby 1.8.7 Rails 3.0.3) However if you remove the module declaration the gem tests fail but the app works! | 2011-02-08 | ||
103 | ERROR | When moving the model to the app/models folder the module declaration for SqlMetrics needs to be removed. LoadError (Expected /home/jamie/Development/rails/sql_metrics/app/models/metric.rb to define Metric): (I’m uing ruby 1.8.7 Rails 3.0.3) However if you remove the module declaration the gem tests fail but the app works! | 2011-02-08 | ||
28 | TYPO | When it says “ActionController::Rendering: It overrides render to check whenever”, shouldn’t it be AbstractController::Rendering? | 2011-02-08 | ||
19 | TYPO | “we haven’t formally described what is Placement of verb. Consider changing to “we haven’t formally described what a renderer is” | 2011-02-08 | ||
96 | TYPO | 2nd to the last paragraph, 2nd sentence. …customizing them in the same we configured the mailer… | 2011-02-08 | ||
108 | TYPO | 2nd to the last paragraph | 2011-02-08 | ||
112 | TYPO | 2nd paragraph | 2011-02-08 | ||
57 | TYPO | On “From the normalized | 2011-02-08 | ||
141 | TYPO | First paragraph after the code snippet. First sentence doesn’t fit in the pdf. | 2011-03-14 | ||
30 | TYPO | 3rd paragraph from end; second sentence “in” should be “on” i.e. Since Rails itself relies in this well-defined stack to extend Action Controller | 2011-02-08 | ||
35 | TYPO | Second Paragraph from the end; second sentence replace “do” with “to” | 2011-02-10 | ||
44 | SUGGEST | 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 should be added. The correct complete path should be: I initially interpreted the path to be: Only after consulting the code archive did it become clear what the correct path should be. Please be explicit where chunks of code should go in the path hierarchy. | |||
13 | TYPO | 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 | |||
99 | TYPO | On “To subscribe to those notifications, all | 2011-03-14 | ||
109 | ERROR | 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 doesn’t provide an each method on string objects. The Rack Specification states the body value in the environment argument “commonly is an Array of Strings, the application instance itself, or a File-like object”. A possible fix is to change the following line from this: This allows the application to run without error and with no change to the expected output. | |||
160 | TYPO | 3rd code snippet. 2nd line. .responds_to?(:call) | |||
35 | TYPO | Last paragraph. First sentence. “attributes methods” should be “attribute methods” (i.e. without the s) or (suggestion) “Attribute Methods” given you used “Active Record” for ActiveRecord | |||
37 | TYPO | Third paragraph. Second line. “generate an unique url” => “an” should be ‘a’ | |||
158 | ERROR | On: autoload :App, “translator/app” It should be: require ‘translator/app’ The missing require will cause an “uninitialized constant Translator::App” exception on startup. | |||
61 | TYPO | First sentence after the comma “some functionals tests” should be | |||
61 | TYPO | The sentence just before the last code snippet: “Let’s do it by add the following line to UsersController” | |||
26 | SUGGEST | … and it breaks down in two main steps: would read better as … and it breaks down into two main steps: | |||
33 | TYPO | … our first test pass. should read … our first test passes. | |||
35 | TYPO | … uses attributes methods extensively. should read … uses attribute methods extensively. | |||
37 | SUGGEST | … and two other methods required by Active Model as well: … should read … as well as two other methods required by Active Model: … | |||
101 | SUGGEST | “mongo database” should be replaced by “MongoDB database” Pages 101(2), 116(2), 117, 118, 119(2) | |||
52 | TYPO | … keeping an eye in performance. should read … keeping an eye on performance. | |||
103 | TYPO | … but there is not such file … should read … but there is no such file … | |||
44 | ERROR | “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 to use it, as far as I can tell. I’m not quite sure where to specify this, either. | |||
63 | ERROR | “”" I’m on page 63, so I haven’t read page 71 yet. ;-) | |||
72 | SUGGEST | “Dual templates rocks!” —there’s a subject-verb disagreement there. Should be “rock.” | |||
74 | TYPO | First paragraph, last sentence reads “configure it to create .merb templates instead .erb” —probably should be “instead of .erb” | |||
108 | ERROR | 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 on Rails 3.0.3 and maybe it’s using a different version of Rack.) An error occurred: So I enclosed the body string in an array, i.e.: Then the “Hello Rack” application worked correctly. | |||
64 | TYPO | To prove that Ruby in fact uses Object#hash to localize entries,.. localize -> locate | |||
142 | ERROR | 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 responders:install.”. I think the reason is that the new files were not declared in lib/responders.rb (require “responders/install/install_generator”) I then have the following error : Perhaps because require “rails/generators/base” is missing in lib/responders/install/install_generator.rb but then I have the following error : Undoubtedly I missed something, but I am stuck here… Regards | |||
22 | ERROR | latest test run doesn’t pass … rubyrails:pdf_renderer (ruby-1.9.2@rails310)$ rake test 1) Failure: 2 tests, 6 assertions, 1 failures, 0 errors, 0 skips Test run options: —seed 63768 | |||
13 | SUGGEST | update Enginex gem .. $ rake test rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) `include Capybara` is deprecated please use `include Capybara::DSL` instead. | |||
22 | ERROR | Running with: ruby 1.9.2p312 (2011-08-11 revision 32926) [x86_64-darwin10.8.0] rake test fails with: encoding error : output conversion failed due to conv error, bytes 0xFF 0xC3 0xBF 0xC3 Change in test/integration/navigation_test.rb From: rake test passes clean Suspect capybara internals change - Gemfile could be pinned to the older version of Capybara that works as advertised (or not). | |||
131 | ERROR | I cannot get why this source code appears here. >>
<%= notice %>
<%= alert %></ | |||
46 | ERROR | at least with rails 3.2.9 | |||
47 | ERROR | at least with rails 3.2.9 the sql_template.rb needs the line attr_accessible :body, :format, :handler, :locale, :partial, :path | |||
51 | TYPO | “As you learned in the code on page 59,…” should be “As you learned in the code on page 44,…”. | |||
91 | ERROR | the test suite isn’t green as promised. i get the following error: | |||
213 | ERROR | (Location 213 of 4082 in Kindle): First “rake test” bombs with this error: if you run it with —trace the additional lines are: ’ | |||
213 | ERROR | (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 rquire ‘rake/rdoctask’) | |||
11 | SUGGEST | 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 problem is that we did not create an index.html.erb file as a template. The book says we should. In other words, there should be no erratum for this issue. |