Module: Ems::NewsHelper

Defined in:
app/helpers/ems/news_helper.rb

Instance Method Summary collapse

Instance Method Details

#news_form_urlObject



3
4
5
6
7
8
9
# File 'app/helpers/ems/news_helper.rb', line 3

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