module Prelaunch::Helpers
Public Instance Methods
prelaunch_logout_link(name = nil, html_options = {})
click to toggle source
# File lib/prelaunch/helpers.rb, line 3 def prelaunch_logout_link name = nil, html_options = {}, &block return unless Prelaunch::valid_env? path = Prelaunch::strip_slashes(Prelaunch.logout_path) url = path html_options = name if block_given? html_options[:rel] = 'nofollow' html_options['href'] ||= url content_tag(:a, name || url, html_options, &block) end