small medium large xlarge

29 Feb 2012, 13:30
Xavier John (21 posts)

I love the book so far. Task D: Cart Creation, stuff gets a bit complicated.

Anyway after reading the following article about REST my understanding is, things should not be stored in sessions. In the book, we store the cart id in the session which means if the request hits another webserver in a farm, my cart will be missing.

I also think it will be nice for the book to use HTML5 syntax. For example in application.html.erb I changed the div to nav `

  <li><a href="http://www....">Home</a></li>
  <li><a href="http://www..../faq">Questions</a></li>
  <li><a href="http://www..../news">News</a></li>
  <li><a href="http://www..../contact">Contact</a></li>
<%= %>


29 Feb 2012, 15:18
Dave Thomas (366 posts)

The session is stored in the browser, and so will get passed from server to server automatically.

You must be logged in to comment