Recent Posts by Jamie Paulson
|
May 16, 2008
Jamie Paulson
3 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Depot Iteration D1 issues Thanks for the response, Sam…but I think the book text is actually correct (it actually states that we can just use “cart” w/o the ”@”)...this is purely user error. Working out of a PDF book apparently presents my brain some challenges in being able to read carefully. :-) |
|
May 15, 2008
Jamie Paulson
3 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Depot Iteration D1 issues Hey remember the time I said I was staying tight to the book? Yeah, I was lying… Missed the changes to the store_controller.rb. Disregard my post. Unless you want to make fun of the newbie now. |
|
May 15, 2008
Jamie Paulson
3 posts
|
Topic: Agile Web Development with Rails, 3rd Edition / Depot Iteration D1 issues So I’m running into some issues in the B1.1 edition…after making modifications to move the cart to the sidebar using partial templates (p 126), I get the following mess when I hit the store page: ================ Showing store/_cart.html.erb where line #5 raised: You have a nil object when you didn’t expect it! Extracted source (around line #5): 2: Your Cart Trace of template inclusion: /layouts/store.html.erb I’m staying pretty tight to the book (I think), so I’m kind of dumbfounded to hit an error. But it looks like maybe the store.html.erb doesn’t have an instance of @cart so is passing in nil. Maybe? Still a newbie here so go easy on me… |
3 posts
