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 |
---|---|---|---|---|
PDF, ePub | Page xvii in paragraph below Chapter 15 heading |
End of paragraph reads: "... scalability in Rails is a big issues." |
Andreas Wachowski | Sep 23, 2015 |
ePub | Page ch. 4 "HTTP Semantics" Section |
in chapter four under the HTTP Semantics section the word The is repeated: |
Anonymous | Mar 15, 2021 |
Page 44 Last paragraph before "Scaffolding the Models" section |
Users following along with the book who did not previously have MySQL installed will encounter a "Can't connect to local MySQL server" error upon executing the rake 'db:create' command if they don't first issue the 'mysql.server start' command. This missing step should therefore probably be mentioned. |
Russ Martin | Dec 07, 2015 | |
PDF, ePub | Page 45 third para |
on 45 last para: |
Vincent Trivett | Jan 11, 2016 |
Page 46 1st full code snippet |
You do not need the following columns in addition to t.timestamps: |
Maggie Baker | Jun 15, 2016 | |
Page 50 Top of page: Gemfile sample |
The Gemfile shown will not work as expected because, as mentioned by others, the class-level respond_to has been moved into the responders gem. However, there also seems to be problems with active model serializers and using the root key option. Specifically, active model serializers version 0.10.0.rc2 or even 0.10.0.rc3 seems to ignore the root option, causing JSON responses to not include the root key. |
Russ Martin | Dec 08, 2015 | |
Printed | Page 51 Bottom |
When I curl the category/show endpoint I get the following error: |
Dave Marr | Nov 09, 2015 |
Page 52 In the code for the Graphs controller |
In the graphs controller, the variable name is wrong: |
Ryan Benedetti | Nov 29, 2015 | |
Page 53 Rails generate code near middle of page |
We are going to create a controller that will use the link serializer and build the category graph: |
Ryan Benedetti | Nov 29, 2015 | |
Page 53 Top of page |
The curl step will not work unless a line is first added to routes.rb: |
Russ Martin | Dec 08, 2015 | |
Page 57 first paragraph |
missing letter |
Anonymous | Oct 12, 2015 | |
Printed | Page 74 4th paragraph |
Items left out to get the Main_topic_classifications listing to work are: |
Dave Marr | Nov 09, 2015 |
Page 75/304 First code paragraph |
the code should be |
Anonymous | Oct 12, 2015 | |
Page 82 Netherlands |
create_table :categories, {:id => false} do |t| |
Kiffin Gish | Jun 20, 2015 | |
Page 84 Netherlands |
The name of the gem is not mentioned and it is not readily evident that the following line has been added to the Gemfile: |
Kiffin Gish | Jun 21, 2015 | |
Page 85 gemfile |
FYI - respond_to has be deprecated in Rails 4.2.2 and moved into the responders gem and AMS needs the version in the gemfile or the serializer won't fire. |
Anonymous | Jul 17, 2015 | |
Page 86 Netherlands |
Everywhere in the code samples: |
Kiffin Gish | Jun 21, 2015 | |
Page 88 generating graph controller |
The PDF says to run 'rails generate controller api/v1/graph show' (singular graph) but the source code expects that to be graphs (plural). (Unless that changes later in the book). |
Anonymous | Jul 17, 2015 | |
Page 88 setting category from params |
You can replace the ternary operator in both the category and graphs controllers with a simple "||" as follows: |
Anonymous | Jul 17, 2015 | |
Printed | Page 112 First full paragraph |
A heads up about the CSV data being imported. There are trailing commas on each line that cause Postgres to reject the file. A quick fix is to use sed (mac/Linux) to iterate through each file and remove the trailing comma on each line. Example: |
Gary Grumbley | Jan 05, 2016 |
ePub | Page 180 CategoryController code |
In Rails 4.2.x, respond_with and the corresponding class-level respond_to have been moved to the responders gem. The respond_to :json will not work unless the steps below are taken: |
Jeff Costa | Nov 03, 2015 |