Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#dispatcher_routeObject



2
3
4
5
# File 'app/helpers/application_helper.rb', line 2

def dispatcher_route
  controller_name = controller_path.gsub(/\//, "_")
  "#{controller_name}##{action_name}"
end

#show_no_requests_found(bucket) ⇒ Object



11
12
13
# File 'app/helpers/application_helper.rb', line 11

def show_no_requests_found(bucket)
  (:p, 'No requests found.')
end

#token_url(token) ⇒ Object



7
8
9
# File 'app/helpers/application_helper.rb', line 7

def token_url(token)
  "#{request.protocol}#{request.host_with_port}/#{token}"
end