module Kinney module GeneralHelper def controller?(*controller) controller.include?(params[:controller]) end def action?(*action) action.include?(params[:action]) end def title title_s = '' title_s << "#{@title} - " if @title title_s << application_name end def meta_description if @meta_description %Q{}.html_safe end end def render_extra_head_content respond_to?(:extra_head_content) ? extra_head_content.join("\n").html_safe : "" end def current_url "#{request.protocol}#{request.host_with_port}#{request.fullpath}" end end end