lib/controllers/features.rb in wackamole-0.0.6 vs lib/controllers/features.rb in wackamole-0.0.7

- old
+ new

@@ -1,14 +1,11 @@ module Features # --------------------------------------------------------------------------- # paginate top features get "/features/:page" do - page = params[:page] ? params[:page].to_i : 1 - -puts @filter.inspect - + page = params[:page] ? params[:page].to_i : 1 @features = Wackamole::Feature.paginate_tops( @filter.to_conds, page ) @search_path = "/features/search" @filter_path = "/features/filter" if request.xhr? @@ -36,10 +33,9 @@ # --------------------------------------------------------------------------- # Filter post "/features/filter" do @filter.from_options( params[:filter] ) session[:filter] = @filter -puts "Setting #{session[:filter].inspect}" @features = Wackamole::Feature.paginate_tops( @filter.to_conds ) erb :"features/filter.js", :layout => false end end \ No newline at end of file