Class: UatActionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/uat_actions_controller.rb

Overview

Provides helper functionality for UAT

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#createObject


19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/controllers/uat_actions_controller.rb', line 19

def create
  respond_to do |format|
    @uat_action = @uat_action_class.new(uat_action_params)
    if @uat_action.save
      format.html { render :create }
      format.json { render json: @uat_action.report, status: :created }
    else
      format.html { render :show }
      format.json { render json: @uat_action.errors, status: :unprocessable_entity }
    end
  end
end

#indexObject


11
12
13
# File 'app/controllers/uat_actions_controller.rb', line 11

def index
  @uat_actions = UatActions.all
end

#showObject


15
16
17
# File 'app/controllers/uat_actions_controller.rb', line 15

def show
  @uat_action = @uat_action_class.default
end