Class: ExportManager::ExportCustomQueriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ExportManager::ExportCustomQueriesController
- Defined in:
- app/controllers/export_manager/export_custom_queries_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /export_manager/export_custom_queries.
-
#destroy ⇒ Object
DELETE /export_manager/export_custom_queries/1.
-
#edit ⇒ Object
GET /export_manager/export_custom_queries/1/edit.
-
#index ⇒ Object
GET /export_manager/export_custom_queries.
-
#new ⇒ Object
GET /export_manager/export_custom_queries/new.
-
#show ⇒ Object
GET /export_manager/export_custom_queries/1.
-
#update ⇒ Object
PATCH/PUT /export_manager/export_custom_queries/1.
Instance Method Details
#create ⇒ Object
POST /export_manager/export_custom_queries
25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 25 def create @export_custom_query = ExportCustomQuery.new(export_custom_query_params) if @export_custom_query.save redirect_to @export_custom_query, notice: "Export custom query was successfully created." else render :new end end |
#destroy ⇒ Object
DELETE /export_manager/export_custom_queries/1
45 46 47 48 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 45 def destroy @export_custom_query.destroy redirect_to export_manager_export_custom_queries_url, notice: "Export custom query was successfully destroyed." end |
#edit ⇒ Object
GET /export_manager/export_custom_queries/1/edit
21 22 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 21 def edit end |
#index ⇒ Object
GET /export_manager/export_custom_queries
7 8 9 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 7 def index @export_custom_queries = ExportCustomQuery.all end |
#new ⇒ Object
GET /export_manager/export_custom_queries/new
16 17 18 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 16 def new @export_custom_query = ExportCustomQuery.new end |
#show ⇒ Object
GET /export_manager/export_custom_queries/1
12 13 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 12 def show end |
#update ⇒ Object
PATCH/PUT /export_manager/export_custom_queries/1
36 37 38 39 40 41 42 |
# File 'app/controllers/export_manager/export_custom_queries_controller.rb', line 36 def update if @export_custom_query.update(export_custom_query_params) redirect_to @export_custom_query, notice: "Export custom query was successfully updated." else render :edit end end |