Published in: Rails
def list @page_title ='List books' # Good job! sort_by = params[:sort_by] @book_pages, @books = paginate :books, :order => sort_by, :per_page => 10 end
You need to login to post a comment.
The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.
winson on 04/30/07
3 people have marked this snippet as a favorite
Published in: Rails
def list @page_title ='List books' # Good job! sort_by = params[:sort_by] @book_pages, @books = paginate :books, :order => sort_by, :per_page => 10 end
You need to login to post a comment.