module UsefulHelpers::Helpers::UrlHelper

Public Instance Methods

an(action) click to toggle source
# File lib/useful_helpers/helpers/url_helper.rb, line 13
def an(action)
  action_name == action
end
ca(controller, action) click to toggle source
# File lib/useful_helpers/helpers/url_helper.rb, line 17
def ca(controller, action)
  params[:controller] == controller && action_name == action
end
cn(controller) click to toggle source
# File lib/useful_helpers/helpers/url_helper.rb, line 9
def cn(controller)
  params[:controller] == controller
end
rc(prefix) click to toggle source
# File lib/useful_helpers/helpers/url_helper.rb, line 5
def rc(prefix)
  request.request_uri.to_s.include?(prefix)
end
st_w?(path) click to toggle source
# File lib/useful_helpers/helpers/url_helper.rb, line 27
def st_w?(path)
  request.fullpath.start_with?(path)
end