5d785457db
- Split up SnippetsController into separate dashboard and explore sections. - Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
8 lines
320 B
Ruby
8 lines
320 B
Ruby
class Explore::GroupsController < Explore::ApplicationController
|
|
def index
|
|
@groups = GroupsFinder.new.execute(current_user)
|
|
@groups = @groups.search(params[:search]) if params[:search].present?
|
|
@groups = @groups.sort(@sort = params[:sort])
|
|
@groups = @groups.page(params[:page]).per(PER_PAGE)
|
|
end
|
|
end
|