Class: Elabs::UploadsController
- Inherits:
-
ContentApplicationController
- Object
- ActionController::Base
- ElabsApplicationController
- ElabsPublicController
- ContentApplicationController
- Elabs::UploadsController
- Defined in:
- app/controllers/elabs/uploads_controller.rb
Constant Summary collapse
- ALLOWED_NESTED_FROM =
%w[language license tag user album project].freeze
- ALLOWED_ORDER_FROM =
%w[title published_at updated_at].freeze
Constants inherited from ContentApplicationController
ContentApplicationController::DEFAULT_ORDER, ContentApplicationController::IS_NSFW_FILTERABLE
Constants inherited from ElabsPublicController
ElabsPublicController::DEFAULT_ORDER, ElabsPublicController::IS_NSFW_FILTERABLE, ElabsPublicController::MAX_ITEMS_PER_PAGE
Instance Method Summary collapse
-
#index ⇒ Object
GET /uploads GET /uploads.json.
-
#show ⇒ Object
GET /uploads/1/edit.
Methods inherited from ContentApplicationController
Instance Method Details
#index ⇒ Object
GET /uploads GET /uploads.json
10 11 12 |
# File 'app/controllers/elabs/uploads_controller.rb', line 10 def index @uploads = scope_request(Upload.published).page(params[:page]).per(self.class::MAX_ITEMS_PER_PAGE) end |
#show ⇒ Object
GET /uploads/1/edit
15 |
# File 'app/controllers/elabs/uploads_controller.rb', line 15 def show; end |