Class: PhiX::SpikedBuffersController

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

Overview

Takes form input from PhiXesController#show and generates a SpikedBuffer using the factory SpikedBuffer

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


6
7
8
9
10
11
12
13
14
# File 'app/controllers/phi_x/spiked_buffers_controller.rb', line 6

def create
  @spiked_buffer = PhiX::SpikedBuffer.new(phi_x_spiked_buffers_params)
  if @spiked_buffer.save
    @spiked_buffers = @spiked_buffer.created_spiked_buffers
    render :show
  else
    render :new
  end
end