<%# available local variables: prev_url: url to the previous page current_page: the page number of currently displayed page num_pages: total number of pages per_page: number of items to fetch per page remote: data-remote -%> <%= link_to raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>