Class: EstimatesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/estimates_controller.rb

Constant Summary

Constants included from Localization

Localization::LOCALIZED_STRINGS

Instance Method Summary collapse

Methods inherited from ApplicationController

in_place_edit_for

Methods included from ApplicationHelper

#back_or_link_to, #detour_to, #h, #image_button_to, #image_detour_to, #image_link_to, #t, #with_detour

Methods included from Localization

#l, load_localized_strings, #valid_language?

Instance Method Details

#createObject



4
5
6
7
8
9
10
# File 'app/controllers/estimates_controller.rb', line 4

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