written by billturner #merb freenode irc channel.
Q. "@current_page = (params[:page] || 1).to_i " what does that refers to?
A. billturner> when you use the pagination, and the <%= paginate(..) %> stuff, it gives you links like /posts/index?page=2
A. billturner> so, if there's no "page=X" then it will pull the first page of results
Giant Robots Ep 580: Taking the complexity out of Toddler's nutrition with
Kay Lim
-
Will gets to grips with nutrition as he talks with Kay Lim, founder of
Heartful Sprout, about the importance of feeding our kids right.