If reconfiguring the server to allow the directory list is not an option, it would probably be helpful to either put the URLs for the individual images in the footnotes, or to at least add some text to the footnote indicating that you’ll need to consult the migration in order to construct the proper URLs. While many may figure out what the problem is and figure out that you can go to the source code for the migration to get the names of the individual image files, others will simply assume a server problem and give up. Because the link is for a directory, clicking on the link results in a permission denied error (presumably because the server is configured to not allow directory listings). The link in footnote 2 for the images (depot_c/public/images) might cause confusion for some people. (not allowing URLs in erratum submissions makes pointing out problems with URLs in the book a little difficult) This implies a URL of //localhost:3000/product - which produces in an error. “Remember, the URL we give to our browser contains both the port number(3000) and the name of the controller in lowercase (product).” Note also that the text immediately before the last image on pg 76: As far as I can tell, the proper URL is //localhost:3000/products. The images on pp 76-77 appear to use the old-style URL for the controller - //localhost:3000/admin. (Dave says: I’m afraid that just a side effect of live code inclusion-the code in the book is derived from these source files, and sometimes we need to include stuff to flag elided material) While this makes sense for the listing in the book (since it only shows 1 product), it is somewhat confusing in the source listing since all three products are, in fact, listed. The comment suggests that something has been ellided from the text. The source code at depot_c/db/migrate/003_add_test_data.rb has a comment after the second product (approx line 43) that appears to be extraneous. (Sam says: The footnote already says that Windows users will need to put the entire command on one line, without the backslash) backslash does not prompt for more inputĬ:\\learn\\depot>ruby script/generate scaffold product \\ The footnote at the bottom of page 74 does not seem to operate this way. Historical errata for Agile Web Development with Rails
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |