- <%= yield %>
-
By Developers, For Developers
PDF Pg | Paper Pg | Type | Description | Fixed on | Comments | |
---|---|---|---|---|---|---|
11 | TYPO | Chapter: Installing on Mac OS X Must be: Xcode | 2016-04-07 | |||
80 | SUGGEST | app/assets/stylesheets/products.css.scss | 2016-04-07 | |||
75 | OK | On Seeing the List of Products section: `… if you chose something besides SQLite 3).` I think that should be: `… if you choose something besides SQLite 3).` | 2016-04-11 | chose (past tense) is correct here. | ||
51 | TYPO | Keys in a particular hash must be unique—should you have will win?? | 2016-04-08 | |||
94 | OK | Lots of code missing from product_test.rb Hard to follow explanation in book, since code is only in the downloaded source code. | 2016-04-11 | |||
79 | ERROR | When attempting to download initial image files at <https:{//}media.pragprog.com/titles/rails5/code/rails50/depot_a/app/assets/images/> I get a “Forbidden” error: “You don’t have permission to access /titles/rails5/code/rails50/depot_a/app/assets/images/ on this server.” | 2016-04-12 | Until this is fixed, you can download those images from http://intertwingly.net/tmp/rails50_images/ | ||
94 | TYPO | I agree with Tom Chappell: something is missing on page 94. Near the bottom, a paragraph states “Next, we’ll test that we’re validating that the image URL ends with one of .gif, .jpg, or .png”, followed by a method definition for “new_product” allowing a URL to be passed in, as I might have expected. However, the very next paragraph says “Here we’ve mixed things up a bit. Rather than write the nine separate tests, we’ve used a couple of loops…”. The next paragraph says “You’ll notice that we’ve also added an extra parameter to our assert method calls.” The code changes being referred to seem to be completely missing. | 2016-04-11 | Thanks! | ||
94 | 79 | TYPO | Accessing URL media.pragprog.com/titles/rails5/code/rails50/depot_a/app/assets/images/ Forbidden You don’t have permission to access /titles/rails5/code/rails50/depot_a/app/assets/images/ on this server. | 2016-04-12 | Until this is fixed, you can download those images from http://intertwingly.net/tmp/rails50_images/ | |
97 | 82 | OK | In the `rails50/depot_a/app/views/products/index.html.erb`, I think you forgot to include ` |
<%= product.price %> |
2016-04-11 | Price is added in iteration C2 |
124 | ERROR | The line_items_controller_test.rb shown on page 124 appears out-of-order: it includes assert_select methods looking for content that isn’t added to the shopping cart until page 125; but the text suggests the test will pass (it doesn’t). Also, the text following it talks about the ‘assigns’ statement, but there isn’t one in that test. Finally, there is no mention of the purpose of the ‘follow_redirect!’ line that is added. | 2016-04-13 | The code is correct, the paragraph before and after the code are incorrect. The test should pass after the change: http://intertwingly.net/projects/AWDwR4/checkdepot-224-500beta3/section-9.4.html \n \nHere's what will replace the paragraph that preceded that code: \n \n <<< For starters, we only need to pass a product ID on the call to \n post. Next we have to deal with the fact that We are no longer \n redirecting to the line items page, we are instead redirecting to the \n cart, where the cart id is internal state data residing a cookie. As this \n is an integration test, instead of focusing on how the code is \n implemented, we should instead be focusing on what the user \n sees, which, after they follow the redirect, will be a page with a heading \n identifying that they are looking at a cart, and with a list item \n corresponding to the product they added.>>> \n \nThe paragraph afterwards will be deleted. \n \n | ||
32 | ERROR | “…is to create a new template in the directory app/views/say…” The template is already generated. So it’s not really a new template. | 2016-04-13 | |||
383 | SUGGEST | Chapter 21, page 378… Very, very, nit picky. But might be helpful for newbies. If the my_action.html.erb template contained this: <%= @msg %> … Hello, World! … Your HTML shows “Hello World!” but nowhere did you explicitly set @msg to that string. | 2016-05-04 | |||
5 | SUGGEST | On page 5 you might want to specify to run the command rm -rf * not only because you will go through the steps to create a project, but also because the Cloud9 default Rails version is 4.2.5 Therefore we need to make sure to install the version 5.0.0 by running gem install rails –version=5.0.0.beta3 –no-ri –no-rdoc and then to verify the version by running rails -v | 2016-05-04 | |||
56 | ERROR | Sample code is “class Order < ApplicationRecord” but text says: “This Order class is defined to be a subclass of the class Base within the ActiveRecord module.” This should be fixed to: “This Order class is defined to be a subclass of the class ApplicationRecord within the ActiveRecord module.” | 2016-05-07 | |||
5 | TYPO | Section: Hello Rails!, Box: Making Development Easier, epub page 5 of 7 in section The last sentence has the wording “for production deploymenti See”, the “i” needs removed from “deployment” | 2016-05-21 | |||
3 | TYPO | Section: Linking pages together On the last page the last paragraph begins “So far, we just done things…”. This should be changed to “So far, we have just done things…”. | 2016-05-21 | |||
epub | TYPO | Section: When things go wrong. p. 2 of 4 in section. The sentence “We’ll return to this later explain this in detail, …” should be “We’ll return to this later to explain this in detail…”. | 2016-05-21 | |||
345 | SUGGEST | No mention seems to be made about dealing with the SECRET_KEY_BASE (see config/secret.yml) when moving the code to production. By default an environment variable needs to be set on the server for the app to work (I’m on Debian). It might be worth indicating the steps to resolve this or a few readers might spent time wondering why their app doesn’t want to start… | 2016-06-08 | |||
14 | TYPO | from forums 398 topics 14260… since i can’t use links… would be nice to be able to link to forum topics… also being able to refer to content else where is useful to be complete… this just seems kinda overkill since i would hope that someone would at least review an errata post… also… i mean… this is code about html… how can i be complete if i am talking about a url in this errata… sorry, noticed this method of reporting after i posted that. also, 2.3.1 and rails 5.0.0.rc1 are current for those, and relevant to that post. and at the time i think i was reading b2, but i just went back and its still that way in b3. in the book it states: $ brew install rbenv ruby-build $ echo ‘eval “$(rbenv init -)”’ » /.bash_profile $ source/.bash_profile $ rbenv install 2.3.0 $ rbenv global 2.3.0 anyone who in the past that had used rbenv with out brew might want to be cautioned to uninstall the old version first otherwise you can end up with odd things happening like in this bug report: see github.com/rbenv/ruby-build/issues/861 also, rvm also works on macos… so, in a way i feel that it should also be mentioned and that they can reffer to the linux notes about that because that for the most part is the same. hum… on 2nd reading… the rvm part is not part of the linux install notes but, a new topic? and not clearly delineated… also, in the rvm section it states: “The use keyword is optional, so you can abbreviate this to rvm 2.0.0. You can also choose to make it the default Ruby interpreter for new Terminal sessions with the following command: $ rvm –default 2.0.0” those should be 2.3.0 instead yes? lastly, the reader might want be cautioned that using rbenv and rvm on the same machine can cause issues, and the uninitiated might want to install one or the other until they are confidant that they can work out the potential conflicts. | 2016-05-22 | |||
36 | ERROR | as of ruby 2.3.1, rails 5.0.0.rc1, safari 9.1.1 the error for /say/h3llo does not by default show the routes and request unless you click on Application Trace => the first time i visited the url in error <=. from that point on though, it did the same things as shown. even when i switched to chrome. | 2016-08-16 | I haven't been able to reproduce this just yet. | ||
53 | SUGGEST | the end for the while block is on the next page. while, in most cases i would not care. it would seen that in this case it might be useful to see the entire block on the same page since your pointing out a while ends with an end… | 2016-08-10 | Pagination is done later in the production cycle | ||
34 | TYPO | by an misfiring autocorrect should be by a misfiring autocorrect | 2016-05-24 | |||
59 | SUGGEST | “class CreateProducts < ActiveRecord::Migration[5.0]” It might be worth mentioning what the “[5.0]” bit does. Even though I’m an experienced Ruby programmer, I did a big double take at it. After thinking about it, I worked out what it was, but a beginner might not. | 2016-06-07 | |||
85 | TYPO | “…link includes the parameter method: :delete” That’s really “method: :delete”. The space is significant - without it, you get a syntax error. | 2016-06-08 | Added to the "Introduction to Ruby" chapter | ||
90 | SUGGEST | I was typing in the regular expression : %r{\\.(gif|jpg|png)\\Z}i, and it got confusing from the pdf. The forward slashes looked very similar to the pipe symbols. I should have known better but in the PDF both symbols looked the same so I used forward slashes throughout. Only when my tests failed later in the chapter did I catch this. Perhaps it can be explicitly pointed out that two different characters are being used here. | 2016-06-08 | |||
75 | SUGGEST | The title on the products page (the figure) in the newly created application should display Products instead of Listing products | 2016-06-06 | |||
107 | TYPO | “The real magic, however, takes place on line 25. When we invoke yield, ” yield method is actually on line 28: - - - <%= yield %> - - |
35