small medium large xlarge

Generic-user-small
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 http://www.infoq.com/articles/rest-introduction 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 `

<ul>
  <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>
</ul>
<%= Time.now.to_formatted_s(:short) %>

`

Dave_gnome_head_isolated_pragsmall
29 Feb 2012, 15:18
Dave Thomas (390 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