app/controllers/extensions_controller.rb
#
# GET /extensions
#
# Return all extensions. Extensions are sorted alphabetically by name.
# Optionally a category can be specified to return only extensions for a
# given category. Extensions can also be returned as an atom feed if the atom
# format is specified.
#
# @example
#   GET /extensions?q=redis
#
# Pass in order params to specify a sort order.
#
# @example
#   GET /extensions?order=recently_updated
#
GET /extensions
Return all extensions. Extensions are sorted alphabetically by name.
Optionally a category can be specified to return only extensions for a
given category. Extensions can also be returned as an atom feed if the atom
format is specified.
GET / extensions Return all extensions . Extensions are sorted alphabetically by name . Optionally a category can be specified to return only extensions for a given category . Extensions can also be returned as an atom feed if the atom format is specified .
def index
    params['platforms'].reject!(&:blank?) if params['platforms'].present?
    @extensions = qualify_scope(Extension, params)
                    .includes(:extension_versions)
    @extensions = @extensions.filter_private(current_user)
    @number_of_extensions = @extensions.count(:all)
    @extensions = @extensions.page(params[:page]).per(20)
    respond_to do |format|
      format.html
      format.atom
    end
  end
def index params [ 'platforms' ] . reject! ( & :blank? ) if params [ 'platforms' ] . present? @extensions = qualify_scope ( Extension , params ) . includes ( :extension_versions ) @extensions = @extensions . filter_private ( current_user ) @number_of_extensions = @extensions . count ( :all ) @extensions = @extensions . page ( params [ :page ] ) . per ( 20 ) respond_to do | format | format . html format . atom end end
GET /extensions
Return all extensions.
GET / extensions Return all extensions .
example
GET /extensions?q=redis Pass in order params to specify a sort order.
GET / extensions?q = redis Pass in order params to specify a sort order .
example
None