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