Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## My find paginate in controller
- @programs = Program.paginate(:per_page=>20, :page=>params[:page], :order=>params[:sortby] || 'start_time', :conditions=>all_conditions,:joins=>[:topic, {:venue_info=>:venue}, {:speaker_info=>:speaker}])
- ## on my page 'params' has the right params but 'params[:page]' is empty????
- ## this is the view
- <%= render :partial=>'program', :collection=>@programs %>
- <%= will_paginate %>
Add Comment
Please, Sign In to add comment