Sha256: 7a59563adb0f965deeabb5b457f949a579b62f20955c154e09c960dee00a4638

Contents?: true

Size: 358 Bytes

Versions: 10

Compression:

Stored size: 358 Bytes

Contents

class EstimatesController < ApplicationController
  verify :method => :post, :redirect_to => ''
  
  def create
    if params[:id] && params[:estimate]
      @task = Task.find(params[:id])
      @task.estimate(params[:estimate][:todo])
      redirect_to :controller => 'periods', :action => :show, :id => @task.period, :task_id => @task.id
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
backlog-0.7.10 app/controllers/estimates_controller.rb
backlog-0.7.12 app/controllers/estimates_controller.rb
backlog-0.7.11 app/controllers/estimates_controller.rb
backlog-0.7.3 app/controllers/estimates_controller.rb
backlog-0.7.4 app/controllers/estimates_controller.rb
backlog-0.7.5 app/controllers/estimates_controller.rb
backlog-0.7.6 app/controllers/estimates_controller.rb
backlog-0.7.7 app/controllers/estimates_controller.rb
backlog-0.7.8 app/controllers/estimates_controller.rb
backlog-0.7.9 app/controllers/estimates_controller.rb