app/controllers/projects_controller.rb
#
# Updates projects's details. Data is validated before.
#

Updates projects's details. Data is validated before.
Updates projects ' s details . Data is validated before .
def update
    assert_params_must_have :id
    if @project.update_attributes(params[:project])
      flash[:notice] = 'Project has been successfully updated'
      redirect_to :action => 'show', :id => @project
    else
      render :action => 'edit'
    end    
  end
def update assert_params_must_have :id if @project . update_attributes ( params [ :project ] ) flash [ :notice ] = 'Project has been successfully updated' redirect_to :action => 'show' , :id => @project else render :action => 'edit' end end
Updates projects's details.
Updates projects ' s details .