diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 71831c5380d4ebf2be4610caaffe8ade9af394da..ad00948da51192e9d192f602b8f25298f499f0f5 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -1,4 +1,6 @@ class HelpController < ApplicationController + skip_before_action :authenticate_user!, :reject_blocked + layout 'help' def index diff --git a/app/views/help/show.html.haml b/app/views/help/show.html.haml index 8551496b98a3107b7c6e9035ce724a9812ae142a..0398afb4c1d92968a06ad4060a6e69e22863d89a 100644 --- a/app/views/help/show.html.haml +++ b/app/views/help/show.html.haml @@ -1,3 +1,3 @@ - page_title @file.humanize, *@category.split("/").reverse.map(&:humanize) .documentation.wiki - = markdown @markdown.gsub('$your_email', current_user.email) + = markdown @markdown.gsub('$your_email', current_user.try(:email) || "email@example.com")