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