Module: Ems::ReportsHelper
- Defined in:
- app/helpers/ems/reports_helper.rb
Instance Method Summary collapse
Instance Method Details
#report_form_url ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/ems/reports_helper.rb', line 3 def report_form_url if params[:action].eql? "edit" or params[:action].eql? "update" return category_report_path(@report.category, @report) else return category_reports_path(@report.category) end end |