Class: LocalLawPipelinesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- LocalLawPipelinesController
- Defined in:
- app/controllers/local_law_pipelines_controller.rb
Overview
typed: false
Instance Method Summary collapse
-
#create ⇒ Object
POST /local_law_pipelines POST /local_law_pipelines.json.
-
#destroy ⇒ Object
DELETE /local_law_pipelines/1 DELETE /local_law_pipelines/1.json.
-
#edit ⇒ Object
GET /local_law_pipelines/1/edit.
-
#index ⇒ Object
GET /local_law_pipelines GET /local_law_pipelines.json.
-
#new ⇒ Object
GET /local_law_pipelines/new.
-
#show ⇒ Object
GET /local_law_pipelines/1 GET /local_law_pipelines/1.json.
-
#update ⇒ Object
PATCH/PUT /local_law_pipelines/1 PATCH/PUT /local_law_pipelines/1.json.
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
POST /local_law_pipelines POST /local_law_pipelines.json
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 29 def create @local_law_pipeline = LocalLawPipeline.new(local_law_pipeline_params) respond_to do |format| if @local_law_pipeline.save format.html { redirect_to @local_law_pipeline, notice: 'Local law pipeline was successfully created.' } format.json { render :show, status: :created, location: @local_law_pipeline } else format.html { render :new } format.json { render json: @local_law_pipeline.errors, status: :unprocessable_entity } end end end |
#destroy ⇒ Object
DELETE /local_law_pipelines/1 DELETE /local_law_pipelines/1.json
59 60 61 62 63 64 65 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 59 def destroy @local_law_pipeline.destroy respond_to do |format| format.html { redirect_to local_law_pipelines_url, notice: 'Local law pipeline was successfully destroyed.' } format.json { head :no_content } end end |
#edit ⇒ Object
GET /local_law_pipelines/1/edit
24 25 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 24 def edit end |
#index ⇒ Object
GET /local_law_pipelines GET /local_law_pipelines.json
9 10 11 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 9 def index @local_law_pipelines = LocalLawPipeline.all end |
#new ⇒ Object
GET /local_law_pipelines/new
19 20 21 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 19 def new @local_law_pipeline = LocalLawPipeline.new end |
#show ⇒ Object
GET /local_law_pipelines/1 GET /local_law_pipelines/1.json
15 16 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 15 def show end |
#update ⇒ Object
PATCH/PUT /local_law_pipelines/1 PATCH/PUT /local_law_pipelines/1.json
45 46 47 48 49 50 51 52 53 54 55 |
# File 'app/controllers/local_law_pipelines_controller.rb', line 45 def update respond_to do |format| if @local_law_pipeline.update(local_law_pipeline_params) format.html { redirect_to @local_law_pipeline, notice: 'Local law pipeline was successfully updated.' } format.json { render :show, status: :ok, location: @local_law_pipeline } else format.html { render :edit } format.json { render json: @local_law_pipeline.errors, status: :unprocessable_entity } end end end |