lib/controllers/collections.rb in mongo3-0.1.3 vs lib/controllers/collections.rb in mongo3-0.1.4
- old
+ new
@@ -37,11 +37,10 @@
get "/collections/:page" do
@back_url = "/databases/1"
@page = params[:page].to_i || 1
@indexes = options.connection.indexes_for( session[:path_names] )
-puts "INDEXES #{@indexes.inspect}"
load_cltn( params[:page].to_i )
erb :'collections/list'
end
@@ -113,10 +112,10 @@
@query = [query_params.first.to_json, query_params.last.to_json].join( " | " )
@query.gsub!( /\"/, "'" )
end
@page = page
path_names = session[:path_names]
-
+puts "PARAMS ", query_params.inspect
@cltn = options.connection.paginate_cltn( path_names, query_params, @page, 15 )
end
end
end
\ No newline at end of file