Sha256: f61e322638a02748c7ab444188c335751580e711721eb5d3ceed34036973106d

Contents?: true

Size: 285 Bytes

Versions: 21

Compression:

Stored size: 285 Bytes

Contents

module Ems
  module ReportsHelper
    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
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.1.12 app/helpers/ems/reports_helper.rb
ems-0.1.11 app/helpers/ems/reports_helper.rb
ems-0.1.10 app/helpers/ems/reports_helper.rb
ems-0.1.9 app/helpers/ems/reports_helper.rb
ems-0.1.8 app/helpers/ems/reports_helper.rb
ems-0.1.7 app/helpers/ems/reports_helper.rb
ems-0.1.6 app/helpers/ems/reports_helper.rb
ems-0.1.5 app/helpers/ems/reports_helper.rb
ems-0.1.4 app/helpers/ems/reports_helper.rb
ems-0.1.3 app/helpers/ems/reports_helper.rb
ems-0.1.2 app/helpers/ems/reports_helper.rb
ems-0.1.1 app/helpers/ems/reports_helper.rb
ems-0.1.0 app/helpers/ems/reports_helper.rb
ems-0.0.9 app/helpers/ems/reports_helper.rb
ems-0.0.8 app/helpers/ems/reports_helper.rb
ems-0.0.7 app/helpers/ems/reports_helper.rb
ems-0.0.6 app/helpers/ems/reports_helper.rb
ems-0.0.5 app/helpers/ems/reports_helper.rb
ems-0.0.4 app/helpers/ems/reports_helper.rb
ems-0.0.3 app/helpers/ems/reports_helper.rb