Class: AppDetectionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- AppDetectionsController
- Defined in:
- app/controllers/app_detections_controller.rb
Overview
typed: false
Instance Method Summary collapse
-
#create ⇒ Object
POST /app_detections POST /app_detections.json.
-
#destroy ⇒ Object
DELETE /app_detections/1 DELETE /app_detections/1.json.
-
#edit ⇒ Object
GET /app_detections/1/edit.
-
#index ⇒ Object
GET /app_detections GET /app_detections.json.
-
#new ⇒ Object
GET /app_detections/new.
-
#show ⇒ Object
GET /app_detections/1 GET /app_detections/1.json.
-
#update ⇒ Object
PATCH/PUT /app_detections/1 PATCH/PUT /app_detections/1.json.
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
POST /app_detections POST /app_detections.json
27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/controllers/app_detections_controller.rb', line 27 def create @app_detection = AppDetection.new(app_detection_params) respond_to do |format| if @app_detection.save format.html { redirect_to @app_detection, notice: 'App detection was successfully created.' } format.json { render :show, status: :created, location: @app_detection } else format.html { render :new } format.json { render json: @app_detection.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /app_detections/1 DELETE /app_detections/1.json
57 58 59 60 61 62 63 |
# File 'app/controllers/app_detections_controller.rb', line 57 def destroy @app_detection.destroy respond_to do |format| format.html { redirect_to app_detections_url, notice: 'App detection was successfully destroyed.' } format.json { head :no_content } end end |
#edit ⇒ Object
GET /app_detections/1/edit
22 23 |
# File 'app/controllers/app_detections_controller.rb', line 22 def edit end |
#index ⇒ Object
GET /app_detections GET /app_detections.json
7 8 9 |
# File 'app/controllers/app_detections_controller.rb', line 7 def index @app_detections = AppDetection.all end |
#new ⇒ Object
GET /app_detections/new
17 18 19 |
# File 'app/controllers/app_detections_controller.rb', line 17 def new @app_detection = AppDetection.new end |
#show ⇒ Object
GET /app_detections/1 GET /app_detections/1.json
13 14 |
# File 'app/controllers/app_detections_controller.rb', line 13 def show end |
#update ⇒ Object
PATCH/PUT /app_detections/1 PATCH/PUT /app_detections/1.json
43 44 45 46 47 48 49 50 51 52 53 |
# File 'app/controllers/app_detections_controller.rb', line 43 def update respond_to do |format| if @app_detection.update(app_detection_params) format.html { redirect_to @app_detection, notice: 'App detection was successfully updated.' } format.json { render :show, status: :ok, location: @app_detection } else format.html { render :edit } format.json { render json: @app_detection.errors, status: :unprocessable_entity } end end end |