Class: PhiX::SpikedBuffersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PhiX::SpikedBuffersController
- 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
Constant Summary
Constants included from FlashTruncation
FlashTruncation::STRING_OVERHEAD
Instance Method Summary collapse
Methods inherited from ApplicationController
#block_api_access, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!
Methods included from FlashTruncation
#max_flash_size, #truncate_flash, #truncate_flash_array
Instance Method Details
#create ⇒ Object
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 |