aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorAlban Peignier2012-04-16 14:56:38 +0200
committerAlban Peignier2012-04-16 14:56:38 +0200
commitcda5d74c245e03c194996a3cfe5221785474d12b (patch)
treef43323e16d0d60c54e645db1ae1c63e1b4f611b1 /app/helpers/application_helper.rb
parenta3b6f1c459e409023a1ef531e4f6f8084731a8f9 (diff)
downloadchouette-core-cda5d74c245e03c194996a3cfe5221785474d12b.tar.bz2
Manage help texts with a dedicated HelpController. Refs #12
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index cf6486306..29951da87 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -4,5 +4,12 @@ module ApplicationHelper
@referential.present? and not @referential.new_record?
end
+ def help_page?
+ controller_name == "help"
+ end
+
+ def help_path
+ url_for(:controller => "help", :action => "show") + '/'
+ end
end