Method: CapacitiesController#create
- Defined in:
- app/controllers/capacities_controller.rb
#create ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/capacities_controller.rb', line 23 def create @capacity = Capacity.new(params[:capacity]) @capacity.iteration= ProjectInfo.find(:first).current_iteration if @capacity.save flash[:notice] = 'Capacity was successfully created.' redirect_to :action => 'list' else render :action => 'new' end end |