muck-raker 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/recommender/entries_controller.rb +2 -2
- data/muck-raker.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
@@ -70,13 +70,13 @@ class Recommender::EntriesController < ApplicationController
|
|
70
70
|
def _search operator = :or
|
71
71
|
@page = (params[:page] || 0).to_i
|
72
72
|
@per_page = (params[:per_page] || 10).to_i
|
73
|
-
@offset =
|
73
|
+
@offset = @page*@per_page
|
74
74
|
if !@search.nil?
|
75
75
|
@term_list = URI.escape(@search)
|
76
76
|
results = Entry.search(@search, I18n.locale.to_s, @per_page, @offset, operator)
|
77
77
|
@hit_count = results.total
|
78
78
|
@results = results.results
|
79
|
-
@paginated_results = @results.paginate(:page => @page, :per_page => @per_page, :total_entries => @hit_count)
|
79
|
+
@paginated_results = @results.paginate(:page => @page+1, :per_page => @per_page, :total_entries => @hit_count)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
data/muck-raker.gemspec
CHANGED