Class: EstimatesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- EstimatesController
- Defined in:
- app/controllers/estimates_controller.rb
Constant Summary
Constants included from Localization
Localization::LOCALIZED_STRINGS
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from Localization
#l, load_localized_strings, #valid_language?
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/estimates_controller.rb', line 3 def create if params[:id] && params[:estimate] @task = Task.find(params[:id]) @task.estimate(params[:estimate][:todo], user) redirect_to :controller => 'periods', :action => :show, :id => @task.period, :task_id => @task.id end end |