Class: PhiX::StocksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- PhiX::StocksController
- Defined in:
- app/controllers/phi_x/stocks_controller.rb
Overview
Takes form input from PhiXesController#show and generates a PhiX LibraryTube using the factory Stock
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 15 16 17 |
# File 'app/controllers/phi_x/stocks_controller.rb', line 6 def create @stock = PhiX::Stock.new(phi_x_stock_params) if @stock.save @stocks = @stock.created_stocks render :show else @stocks = [] @tag_option_names = PhiX.tag_option_names @study_names = PhiX.studies.for_select_association render :new end end |