Sha256: c5e061962b809bdcd714b6b8b63b6bce06ef0405ffafe3b63bb23bafb1037d05

Contents?: true

Size: 275 Bytes

Versions: 21

Compression:

Stored size: 275 Bytes

Contents

module Ems
  module NewsHelper
    def news_form_url
      if params[:action].eql? "edit" or params[:action].eql? "update"
        return category_news_path(@news.category, @news)
      else
        return category_news_index_path(@news.category)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.0.2 app/helpers/ems/news_helper.rb