Sha256: 02e21e4001065c0cee2b912bfcd3a5857e70ce6b796cb5c61dada4c8e0600105
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
class MountainGoatRalliesController < MountainGoatController def index @page = !params[:page].nil? ? params[:page].to_i : 1 @convert = Convert.find(params[:mountain_goat_convert_id]) if !params[:mountain_goat_convert_id].nil? if @convert @rallies = @convert.rallies.find(:all, :conditions => { }, :order => "created_at DESC", :limit => 100, :offset => ( @page - 1 ) * 100 ) else @rallies = Rally.find(:all, :conditions => { }, :order => "created_at DESC", :limit => 100, :offset => ( @page - 1 ) * 100 ) end respond_to do |format| format.html { } end end end
Version data entries
4 entries across 4 versions & 1 rubygems