snippets_controller.rb 206 Bytes EditWeb IDE 1 2 3 4 5 6 class Explore::SnippetsController < Explore::ApplicationController def index @snippets = SnippetsFinder.new.execute(current_user, filter: :all) @snippets = @snippets.page(params[:page]) end end