Class: ExploreController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/explore_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
8
9
10
# File 'app/controllers/explore_controller.rb', line 2

def index
  respond_to do |format|
    format.html { 
      if request.xhr?
        render partial: params[:section].present? && params[:section].gsub(/[^a-z]/i, '') || "explore"
      end
    }
  end
end