small medium large xlarge

Errata for Agile Web Development with Rails 4

 

The latest version of the book is P2.0, 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.

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: P2.0 (30-Dec-14)
#77995
Paper page: xv

The link on pragprog.com for note #2 takes you to tarballs, but the .tgz tarball is actually rails30. The zip file is correct.--Don Wilde

  • Reported in: B2.0 (08-May-13)
#51478
PDF page: 0
This issue happens only with Kindle format of the book. When code listing is too wide, right part of it is cropped. Example is at location 5203 (of ...more...
  • Reported in: P2.0 (23-Feb-15)
#78201
PDF page: 1
In downloadable example code, in code/rails40/depot_n though depot_v contains an incorrect comment syntax that raises a runtime error in /assets/javas...more...
  • Reported in: B5.0 (20-Aug-13)
  • Fixed: 08-Jul-14, awaiting book release
#52425
PDF page: 4
The section on installing on Windows suggests that the simplest way to set up the Rails stack is to use railsinstaller.org I have just talked a cli...more...
  • Reported in: P2.0 (13-Dec-14)
#77923
Paper page: 33

Top of the page : the end sentence dot shouls not be on th ebeginning of the second line... probably due to trhe change of font.--Pascal Fodiman

  • Reported in: P2.0 (02-Jan-15)
#78007
PDF page: 39
Not a huge problem, but some code specifies a space in 'Good night, ' but the output is shown as 'Goodnight...'. Unless there's something I don't get ...more...
  • Reported in: P1.0 (17-Feb-14)
  • Fixed: 08-Jul-14, awaiting book release
#76436
PDF page: 41
Where it says "Keys in a particular hash must be unique—you can’t have two entries for :drum.", should say "Keys in a particular hash are unique—the l...more...
  • Reported in: P1.0 (01-Nov-13)
  • Fixed: 08-Jul-14, awaiting book release
#53107
PDF page: 42
"In effect, though, you can ignore that it’s a hash and pretend that Ruby has keyword arguments." It sounds like this should have been updated for ...more...
  • Reported in: B5.0 (20-Aug-13)
  • Fixed: 08-Jul-14, awaiting book release
#52429
PDF page: 43
On page 41 in "Ruby Names" you mention that a name prefixed with a colon is a symbol (e.g. :symbol). On page 43 in "Arrays and Hashes" you mention t...more...
Sam Ruby says: A symbol may be a key; from the text of the book: "The use of symbols as hash keys is so commonplace that starting with Ruby 1.9 there is a special syntax for it, saving both keystrokes and eyestrain."
  • Reported in: P1.0 (10-Nov-13)
  • Fixed: 08-Jul-14, awaiting book release
#53134
PDF page: 47
The following sentence contains a query string within the URL, meaning a GET request is performed. However, the sentence indicates that a POST request...more...
Sam Ruby says: One can indeed POST to a URL containing a query string, and in fact, the Depot application does this.
  • Reported in: P1.0 (21-Nov-13)
  • Fixed: 08-Jul-14, awaiting book release
#53191
PDF page: 47

Mention of impossibility of instantiating modules. But subsequent statement says "module's instance method".--Raj

  • Reported in: P1.0 (04-Mar-14)
  • Fixed: 08-Jul-14, awaiting book release
#76473
PDF page: 58
In introducing methods, you make use of a return statement that is in practice unwarranted since Ruby methods return their last-evaluated expression. ...more...
Sam Ruby says: The example shows how a return statement could be used; and the subsequent prose says that return is optional.
  • Reported in: P2.0 (20-May-14)
  • Fixed: 09-Jul-14, awaiting book release
#76808
PDF page: 72

Hyperlink for downloading index.html.erb points to incorrect content.--Kevin Buchs

Sam Ruby says: How is the content incorrect?
  • Reported in: P2.0 (20-May-14)
  • Fixed: 09-Jul-14, awaiting book release
#76809
PDF page: 75
Seems there is a sentence or two missing from this content in the colored box: "A GET request is defined by HTTP to be used to retrieve data; it isn’...more...
Sam Ruby says: The previous paragraph introduced the method parameter; I reworded these two sentences to make it clearer.
  • Reported in: B6.0 (21-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52962
PDF page: 76
In the /index.html.erb file, the list_description class needs to be added to the <table> tag not the <td> tag. As it stands, the css is not being appl...more...
Sam Ruby says: The list_description class is meant to cover the description; the Show/Edit/Destroy links are covered by the list_actions class.
  • Reported in: P1.0 (21-Feb-14)
  • Fixed: 09-Jul-14, awaiting book release
#76441
PDF page: 79
"Why test against 1 cent, rather than zero? Well, it’s possible to enter a number such as 0.001 into this field. Because the database stores just two ...more...
Sam Ruby says: Sqlite3 doesn't directly support decimal data types; but database managers that are intended for use in production do. At this point in the book, we are just introducing concepts here, so I don't want to delve into more advanced topics like differences in databases.
  • Reported in: P1.0 (05-Mar-14)
  • Fixed: 09-Jul-14, awaiting book release
#76480
PDF page: 79
I think that, regarding the numerical validation of the price, it must be stressed that errors could also be produced by storing legal but unintended ...more...
Sam Ruby says: This is meant to be an introduction to validation at this point.
  • Reported in: P2.0 (08-Jul-14)
  • Fixed: 09-Jul-14, awaiting book release
#76973
PDF page: 81

$ rails g migration add_image_to_pins image:string

Do you mean?

$ rails g migration add_image_to_pins image_cache:string--Ricardo

Sam Ruby says: I don't see anything remotely like this text in this book.
  • Reported in: P2.0 (08-Jul-14)
  • Fixed: 09-Jul-14, awaiting book release
#76974
PDF page: 81
4 These uploadersare reusable and the same one can be mounted on multiple models in our pinmodel: app/uploaders/image_uploader.rb (WRONG, THIS IS N...more...
Sam Ruby says: I don't see anything remotely like this text in this book.
  • Reported in: P1.0 (21-Oct-13)
  • Fixed: 09-Jul-14, awaiting book release
#53041
PDF page: 82

The link to the MiniTest docs at the bottom of the page is broken.--Martín Raúl Villalba

  • Reported in: P2.0 (15-Mar-16)
#80106
PDF page: 83
Working on section 6.2 Iteration A2: Making Prettier Listings...NEED HELP PLEASE! media.pragprog.com/titles/rails4/code/rails40/depot_a/app/assets/...more...
  • Reported in: P2.0 (02-Jun-14)
  • Fixed: 09-Jul-14, awaiting book release
#76832
PDF page: 86
Link on the top of the fixtures has changed in recent rails version (4.1.1) from Fixtures.html to FixtureSet.html So: api.rubyonrails.org/classes/...more...
  • Reported in: B6.0 (20-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52957
PDF page: 86

Link in footer to Mini Test in rdoc is broken, remove /unit and the link works.--Justin Hiltz

  • Reported in: P1.0 (18-Dec-13)
  • Fixed: 09-Jul-14, awaiting book release
#53363
PDF page: 91
To get the file products/index.html.erg to render properly in Firefox I had to add 'class="product"' (no single quotes) to the opening table tag, and ...more...
Sam Ruby says: class="products" should have been added to the body tag on page 75; I can't explain why comments in the css file wouldn't work (note: I develop using Firefox).
  • Reported in: P2.0 (09-Jun-14)
  • Fixed: 09-Jul-14, awaiting book release
#76847
PDF page: 93
legend for Figure 16 Template not found should not be that as the template index.html.erb, is created when using the rails scaffold controller gene...more...
  • Reported in: P2.0 (10-Dec-15)
#79321
PDF page: 94
The line for the store's index page: <%= sanitize(product.description) %> should be wrapped in a p tag to match the CSS. Using the provided markup mak...more...
  • Reported in: P2.0 (14-Jun-16)
#80425
PDF page: 95
The code block in products_controller.rb is curently: @update = { title: 'Foo Bar', description: 'Foos and bars, bars and foos...more...
  • Reported in: B5.0 (18-Aug-13)
  • Fixed: 09-Jul-14, awaiting book release
#52407
PDF page: 98

Product description overwrites image unless I put it in <p></p> tags.

<p>
<%= sanitize(product.description) %>
</p>--Todd Crone

Sam Ruby says: I can't reproduce this problem
  • Reported in: B5.0 (23-Aug-13)
  • Fixed: 09-Jul-14, awaiting book release
#52444
PDF page: 98
sanitize(product.description) removes any html tags and hence it will never be nicely printed "to make the descriptions more interesting for our custo...more...
Sam Ruby says: sanitize only removes unsafe html tags
  • Reported in: P2.0 (16-May-16)
#80323
Paper page: 100
When I look at the application in the browser (Chrome) there is no header or sidebar formatting. To be sure I did not make an error, I loaded depot_e...more...
  • Reported in: B6.0 (16-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52940
PDF page: 100
Paper page: 86

"Document not found" for MiniTest1 framework URL--Chris Seelus

  • Reported in: P2.0 (13-Jan-15)
#78038
PDF page: 100
This error has been reported before - just note that if you use the old syntax, the animation may fail with no error indicated. The line item stays br...more...
  • Reported in: P1.0 (01-Dec-13)
#53259
PDF page: 104
Book say to change this flag to true to enable caching: config.action_controller.perform_caching = true But it doesn't work without this flag al...more...
  • Reported in: P2.0 (12-Jul-14)
#76990
Paper page: 104
config/environments/development.rb only after setting both of the following to true did caching work properly config.cache_classes = true conf...more...
  • Reported in: P1.0 (01-Oct-13)
#53002
PDF page: 108
There is no introduction or explanation as to the purpose of controllers/concerns. It appears without hardly any context. What is a concern used for? ...more...
  • Reported in: P1.0 (30-Oct-13)
  • Fixed: 09-Jul-14, awaiting book release
#53092
PDF page: 108
The paragraph under current_card.rb states, that the code finally returns the new cart. As I see it, it doesn't, but returns the cart's id!--Stefan Ot...more...
  • Reported in: P2.0 (07-Jul-14)
  • Fixed: 09-Jul-14, awaiting book release
#76965
Paper page: 108

Not to sure what to do with the code on the top of the page, not clear instructions.--poojan shah

Sam Ruby says: I can't track down what code is being referenced based on this description.
  • Reported in: P2.0 (28-Sep-14)
#77502
Paper page: 108
Page 107: after running the scaffold to create the Cart, and migrating it... the code on page 108 for "/app/controllers/concerns/current_cart.rb" do...more...
  • Reported in: P2.0 (16-Sep-14)
#77340
PDF page: 109
Book text: class Cart < ActiveRecord::Base ➤ has_many :line_items, dependent: :destroy end But if LineItem is a Model, shouldn't "has_many" be...more...
  • Reported in: B6.0 (12-Sep-13)
#52625
PDF page: 112
The controller/concerns folder, introduced on page 112...I don't think there was any meaningful description about it prior two this page. It's just t...more...
  • Reported in: B6.0 (27-Sep-13)
#52990
PDF page: 112
Please discuss the creation of a new file and the purpose of the controller/concerns folder. Nothing says outright that "we are going to create a new ...more...
  • Reported in: P2.0 (04-Apr-14)
  • Fixed: 09-Jul-14, awaiting book release
#76614
Paper page: 113

The correct way of accessing `product_id` from request's params is: params[:line_item][:product_id], not params[:product_id]

Sam Ruby says: I don't know how this reader came to that conclusion. Data from the log: Started POST "/line_items?product_id=3" for 127.0.0.1 at 2014-07-08 23:04:47 -0400 Processing by LineItemsController#create as */* Parameters: {"product_id"=>"3", "authenticity_token"=>"6eQBpEQn892GZL/TVaPtAXHe/TKl32Q8S3mKrF1jSf8="}
  • Reported in: B5.0 (25-Aug-13)
  • Fixed: 09-Jul-14, awaiting book release
#52463
PDF page: 116
Improve the implementation of "ensure_not_referenced_by_any_line_item" method. Since it does not follow the standard Ruby conventions. For example, "r...more...
  • Reported in: B6.0 (29-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52997
PDF page: 118
In the tenth-eleventh line from bottom, there is a space between "command" word and period sign: "... automatically by the scaffold command . This me...more...
  • Reported in: P1.0 (30-Jan-14)
  • Fixed: 09-Jul-14, awaiting book release
#76349
PDF page: 120
Hello People, Thanks for the fantastic reference. Maybe its just my lack of understanding here, but the following code (from the book) seems to wor...more...
Sam Ruby says: Each cart has a collection of line_items that are specific to that cart. Therefore there is no need to specify the cart in a find operation over the list of line_items for that specific cart. If there is any magic involved here it is that the Cart.line_items.build method will automatically fill in the cart.
  • Reported in: P1.0 (24-Oct-13)
  • Fixed: 09-Jul-14, awaiting book release
#53076
PDF page: 124
Your code for show.html.erb at the bottom of the page doesn't fix the DRY issue. I believe it should be: <% if notice %> <p id="notice"><%= notice %...more...
Sam Ruby says: The DRY issue is addressed in iteration F1
  • Reported in: B4.0 (25-Jul-13)
#52235
PDF page: 125

Footnote '2' link bellow page giving 404 not found error:

guides.rubyonrails.org/debugging_rails_applications.html%23the-logger--Frank Betorina

Susannah Davidson Pfalzer says: Frank, thank you for alerting us about this. We're trying to reproduce the problem - could you please let us know what PDF viewer you're using and what method you are using for accessing the page? (I.e., are you clicking on the link, or copying and pasting it in the browser?) - Susannah Pfalzer, editor
  • Reported in: B1.0 (16-Oct-13)
  • Fixed: 09-Jul-14, awaiting book release
#53028
PDF page: 125
I am reading a book P2.2 from 2012 and studying Rails4. I found a typo in the examples data from media.pragprog.com/titles/rails4/code/rails4-code.zip...more...
Sam Ruby says: http://media.pragprog.com/titles/rails4/code/rails40/depot_i/test/models/cart_test.rb I see two tests. The first defines and uses book_one and book_two. The second defines and uses ruby_book.
  • Reported in: B4.0 (25-Jul-13)
#52236
PDF page: 127

Footnote '3' link bellow page giving 404 not found error:

github.com/rails/strong_parameters%23readme

  • Reported in: P1.0 (03-Mar-14)
  • Fixed: 09-Jul-14, awaiting book release
#76468
PDF page: 127
Even after applying the changes, notably to the destroy method in the carts controller, I'm still capable of browsing to which ever cart I like, at ca...more...
Sam Ruby says: This hole is closed in Iteration I3: Limiting Access
  • Reported in: P1.0 (20-Dec-13)
  • Fixed: 09-Jul-14, awaiting book release
#54870
PDF page: 129
Between pages 129 and 130, essentially in the middle of a paragraph, while we are still talking about making a smarter cart, the sample codebase switc...more...
Sam Ruby says: This is why the Playtime exercises encourage you to use git.
  • Reported in: P2.0 (09-Jun-16)
#80415
PDF page: 132
At the top of PDF page 132, we see a line from rails40/depot_i/app/assets/stylesheets/carts.css.scss: .total_line .total_cell { There shoul...more...
  • Reported in: P1.0 (23-Nov-13)
#53200
PDF page: 140
(FYI the problems here could be due to changes in jQuery UI implementation) The inclusion of: form, div { display: inline; } inside the s...more...
  • Reported in: P1.0 (24-Oct-13)
  • Fixed: 09-Jul-14, awaiting book release
#53077
PDF page: 143
Adding this to application.js no longer works: //= require jquery-ui After about 15 minutes of fighting, I found this works: 1. gem install jquer...more...
  • Reported in: P2.0 (20-Jul-15)
#78651
PDF page: 147
The effect-blind jQuery UI module should be included as follows: `//= require jquery-ui/effect-blind` instead of `//= require jquery.ui.effect-blind`....more...
  • Reported in: P2.0 (24-Nov-15)
#79215
PDF page: 147
In the code change for Download rails40/depot_m/app/assets/javascripts/application.js, the changed line: //= require jquery.ui.effect-blind is n...more...
  • Reported in: P2.0 (03-Jun-15)
#78468
PDF page: 147
'//= require jquery.ui.effect-blind' doesn't work. Try '//= require jquery-ui/effect-blind' instead. See stackoverlow - /questions/24819381/applica...more...
  • Reported in: P2.0 (03-Jun-15)
#78469
PDF page: 147
'//= require jquery.ui.effect-blind' doesn't work. Try '//= require jquery-ui/effect-blind' instead. See stackoverlow - /questions/24819381/applica...more...
  • Reported in: P2.0 (04-Mar-16)
#80042
Paper page: 147

There is a sentence that reads "Now that we have the jQuery-UIjQuery-UI library available". There are two 'jQuery-UI'--Josue

  • Reported in: P2.0 (20-Oct-15)
#79030
PDF page: 147
Dear brilliant writers of this book, It's a very minor issue, but I wanted to do something back At Chapter 11. Task F: Add a Dash of Ajax, when imp...more...
  • Reported in: P2.0 (05-Jan-15)
#78018
PDF page: 147
It seems the notation for jquery-ui changed from: //= require jquery.ui.effect-blind to //= require jquery-ui/effect-blind The older versi...more...
  • Reported in: P2.0 (25-Mar-15)
#78277
PDF page: 147
The changed line should be require jquery-ui/effect-blind instead of require jquery.ui.effect-blind Refer - stackoverflow.com/questions/2...more...
  • Reported in: P2.0 (17-Jul-14)
#77019
PDF page: 147
In Iteration F3:Highlighting Changes the jQuery-UI library has been updated and the syntax for the entry in application.js to include the Blind Effect...more...
  • Reported in: P1.0 (27-Jul-14)
#77058
Paper page: 148
The color does not fade back. It is a book typo and a file typo. File with typo is rails40/depot_m/app/views/line_items/create.js.erb There is a sp...more...
  • Reported in: P1.0 (30-Mar-14)
#76583
PDF page: 149
In the second paragraph, it says: "With that change in place, click any Add to Cart button, and you’ll see that the changed item in the cart glows a l...more...
  • Reported in: P1.0 (30-Mar-14)
  • Fixed: 09-Jul-14, awaiting book release
#76584
PDF page: 149
In the cited code for the _cart partial, the line <div class="cart_title">Your Cart</div> should be <h2>Your Cart</h2> and that's all!--An...more...
  • Reported in: P1.0 (30-Mar-14)
#76585
PDF page: 150
The code to put in create.js.erb seems wrong in two aspects: first, the line we add should be added between the two existing lines, otherwise it will ...more...
  • Reported in: P1.0 (30-Mar-14)
#76586
PDF page: 150
The animation done with Jquery's 'show' just doesn't work. The cart is shown, but the changes are not animated. I also had the same problem with color...more...
  • Reported in: P2.0 (15-Jun-14)
#76865
PDF page: 153
Iteration F5, rails40/depot_n/app/assets/javascripts/store.js.coffee Rails 4.0.5, Turbolinks 2.2.2 The handler registered by $(document).on "ready...more...
  • Reported in: P2.0 (24-Nov-15)
#79214
PDF page: 153

Footer link 3 to Coffee Script is no longer valid, leads to 404 error page. Suggest updating to coffeescript.org.--Patrick Karjala

  • Reported in: P2.0 (23-Sep-15)
#78844
Paper page: 153

After I add the Ajax to make the images clickable, when I click on the image it adds two of the item to my cart. --Jessa

  • Reported in: B6.0 (27-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52988
Paper page: 153

11.4 Iteration F4

code has not specific location--Chang Ju Park

Sam Ruby says: That code demonstrates a potential approach. The actual changes which are made identify the specific location.
  • Reported in: P1.0 (06-Jan-14)
#59903
PDF page: 153
$(document).on "ready page:change", -> $('.store .entry > img').click -> $(this).parent().find(':submit').click() produces that products will ...more...
  • Reported in: P2.0 (22-Aug-14)
#77235
PDF page: 155
The code within app/views/layouts/application.html.erb fails to display a cart when the cart is initially empty and the first product is added to it.-...more...
  • Reported in: P2.0 (21-Dec-14)
#77952
Paper page: 156
store_controller_test.erb section has a typo in this line: assert_select '.store .entry > img', 3 it doesn't work unless you remove the ">" - ma...more...
  • Reported in: P1.0 (15-Nov-13)
  • Fixed: 09-Jul-14, awaiting book release
#53153
PDF page: 156

assert_select 'tr#current_item td', /Programming Ruby 1.9/
The dot in the RegEx should be escaped.--Patrick P. Henley

  • Reported in: P2.0 (17-Jul-14)
#77020
PDF page: 159
Paper page: 147
depot code jquery-ui effect blind import: in depot code the app/assets/javascripts/application.js lists the import: " //= require jquery.ui.eff...more...
  • Reported in: P2.0 (20-Jun-14)
  • Fixed: 09-Jul-14, awaiting book release
#76879
PDF page: 164
in the scaffold code generated by rails (4.1) the following: <% @order.errors.full_messages.each do |msg| %> <li><$= msg %></li> <% end %> s...more...
  • Reported in: P2.0 (01-Mar-16)
#80017
PDF page: 165
When image is clicked, items are added to cart twice. Adding `.not(".clickable").addClass("clickable")` fixed it: $(document).on "ready page:c...more...
  • Reported in: B6.0 (02-Sep-13)
  • Fixed: 09-Jul-14, awaiting book release
#52562
PDF page: 166
In the paragraph beginning "Not surprisingly" you mention "our existing .js.erb template". It might better be phrase "our existing create.js.erb templ...more...
  • Reported in: P2.0 (01-Mar-16)
#80022
PDF page: 168
The AJAX unit test (test_should_create_line_item_via_ajax) failed with this error: No JQuery call matches [:html, "#cart"] To fix, I put the cal...more...
  • Reported in: P1.0 (30-Nov-13)
  • Fixed: 09-Jul-14, awaiting book release
#53248
Paper page: 169
Pg 169 includes the 2nd of two adjustments to orders_controller_test.rb in chapter (12 "Check Out"). However, the chapter has no steps for running "ra...more...
  • Reported in: P2.0 (30-Nov-15)
#79253
PDF page: 181
The file rails40/depot_r/app/controllers/orders_controller.rb directs the user to add the line "OrderNotifier.received(@order).deliver". However, w...more...
  • Reported in: P2.0 (23-Jun-14)
  • Fixed: 09-Jul-14, awaiting book release
#76886
PDF page: 187
Should the line: order = orders[0] be better placed in the following section of code since it is logically related to the following assertions? ...more...
  • Reported in: P2.0 (30-Nov-15)
#79252
PDF page: 189
Chapter 13 Task H: Sending Mail ends on an unstable note. The reader is not guided to run their tests, and is not guided on how to handle any errors ...more...
  • Reported in: B5.0 (14-Aug-13)
#52385
PDF page: 191
Trivial, but you need to sanitize line_item.product.title in _line_item.text.erb. Buy "Programming Ruby 1.9 & 2.0" and you'll see why!--David Cunningh...more...
  • Reported in: P2.0 (01-Dec-15)
#79259
PDF page: 193
The section that states "the index view doesn't display notice information" is no longer valid. By default, `rails generate` now adds the following t...more...
  • Reported in: P2.0 (01-Dec-15)
#79260
PDF page: 194
The suggested changes to _form.html.erb on page 194 of the PDF are missing the arrowsemarking where changes are being added to the existing file.--Pat...more...
  • Reported in: P1.0 (10-Jan-14)
#76278
PDF page: 194
The changes made to the default '_form.html.erb' file (to improve the appearance of the user creation/modification form) created by the Rails scaffold...more...
  • Reported in: P2.0 (01-Dec-15)
#79261
PDF page: 195
The user is never directed to add any input to the fields before being directed to click "Create User". This is confusing, as it jumps directly to "A...more...
  • Reported in: P2.0 (24-Jun-14)
#76887
PDF page: 196
Wouldn't it be better if there is a note that emphasises that in testing the create method in the user controller the user name (ie 'sam') should be d...more...
  • Reported in: P2.0 (18-Mar-15)
#78262
Paper page: 196
In Iteration F3 we add "gem 'jquery-ui-rails'" and then add it to application.js with: //= require jquery.ui.effect-blind but that throws this e...more...
  • Reported in: P2.0 (04-Dec-15)
#79271
PDF page: 197
The layout for /app/views/sessions/new.html.erb file is missing the "field" classes from the two divs for the login form on the page. This causes the...more...
  • Reported in: P2.0 (21-Apr-14)
#76704
PDF page: 198
In the paragraph after the form code, there's this phrase, which describes the parameters of the *_field_tag helpers: "The first is the name to give t...more...
  • Reported in: P1.0 (31-Oct-13)
#53102
Paper page: 200

The route mapping delete 'logout' => :destroy does not work. --enddy dumbrique

  • Reported in: P1.0 (10-Jan-14)
#76279
PDF page: 200
Should the route "delete 'logout' => :destroy" perhaps instead be "get 'logout' => :destroy" to permit logging out via a standard link in a browser?--...more...
  • Reported in: P1.0 (28-Jun-15)
#78554
PDF page: 218
When I toggle between the English and Spanish versions of the store, the "Add to Cart" button text does not change--it always retains its initial valu...more...
  • Reported in: P1.0 (27-Dec-13)
#58769
PDF page: 221

"Carrito bonita" -> "Carrito bonito"
because
carrito nombre masculino--Alexander Moiseyev

  • Reported in: P2.0 (25-May-15)
#78446
PDF page: 237
Apache 2.4 has changed the access configuration: Remove `Order allow, deny` and `Allow from all` and add `Require all granted` <VirtualHost *:80...more...
  • Reported in: P2.0 (25-May-15)
#78448
PDF page: 237
Apache 2.4 has change security settings. If the web application is outside /var/www/, e.g. in the /home directory it is necessary to add the direc...more...
  • Reported in: P2.0 (25-May-15)
#78447
PDF page: 238
Apache 2.4 has changed some of the naming conventions: The virtual hosts file needs now the .conf extension. Which means instead of depot it is dep...more...
  • Reported in: P2.0 (21-May-14)
#76810
PDF page: 246
"Substitute your host’s name and your application’s directory path in the fol- lowing ServerName line" should be "Substitute your host’s name an...more...
  • Reported in: P2.0 (18-Jun-14)
#76874
Paper page: 289
Under the "Subsetting the Records Returned" heading, the text first alludes to the "all()" method but then refers to the "to_a()" method. I am unsure ...more...
  • Reported in: P2.0 (02-Sep-14)
#77277
PDF page: 322
The page number might not be correct - I'm using iBooks, and the page no. depends on the window size. The error is in the code for: “rails40/dep...more...
  • Reported in: B6.0 (23-Sep-13)
#52977
PDF page: 381

In the first line in the list the 'object' and 'blob' seem to be out of place. Adding cell borders might be a good idea to improve readablity.

  • Reported in: P1.0 (28-Oct-14)
#77710
Paper page: 396

Two descriptions of raw() method are given which contradict each other.

  • Reported in: P2.0 (30-Jul-14)
#77079
PDF page: 417
Text: "...we modify our controller to call paginate()..." Code extract: @orders = Order.order('created_at desc').page(params[:page]) Text stat...more...
  • Reported in: B5.0 (24-Aug-13)
#52447
Paper page: 2125
On kindle at location 2125, the link that points to "configuring a database" section of guides.rubyonrails.org is pointing to the wrong place. I belia...more...