Commit cf395d37
Changed files (3)
app
app/controllers/cakes_controller.rb
@@ -5,7 +5,10 @@ class CakesController < ApplicationController
end
def index
- @cakes = @repository.search_with(params).distinct.includes([:photos]).page(page).per(per_page)
+ @cakes = @repository.search_with(params).
+ distinct.
+ includes([:photos]).
+ page(page).per(per_page)
end
def show
app/controllers/tutorials_controller.rb
@@ -1,6 +1,8 @@
class TutorialsController < ApplicationController
def index
- @tutorials = Tutorial.search(params[:q]).includes([:tags]).page(page).per(per_page)
+ @tutorials = Tutorial.search(params[:q]).
+ includes([:tags]).
+ page(page).per(per_page)
end
def show