molten-trunk/molten5_withgrid/app/controllers/case_reports_controller.rb
def save_report
    if request.post?
      if @case_report = CaseReport.find(params[:case_report][:id]) rescue false
        update
      else
        create
      end
      redirect_to report_link(@case_report)
    end
  end
# This is the primary interface for updating or creating reports
This is the primary interface for updating or creating reports
This is the primary interface for updating or creating reports
def save_report
    if request.post?
      if @case_report = CaseReport.find(params[:case_report][:id]) rescue false
        update
      else
        create
      end
      redirect_to report_link(@case_report)
    end
  end
def save_report if request . post? if @case_report = CaseReport . find ( params [ :case_report ] [ :id ] ) rescue false update else create end redirect_to report_link ( @case_report ) end end
This is the primary interface for updating or creating reports
This is the primary interface for updating or creating reports