blob: 797aab166132f1daf258e8eb8805e0655801da67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
module ApplicationHelper
  def selected_referential?
    @referential.present? and not @referential.new_record?
  end
  def help_page?
    controller_name == "help"
  end
  def test_sheet_page?
    controller_name == "test_sheet"
  end
  def help_path
    url_for(:controller => "/help", :action => "show") + '/'
  end
  
  def test_sheet_path
    url_for(:controller => "/test_sheet", :action => "show") + '/'
  end
  
end
  |