module Buoys::Helper
Public Instance Methods
buoy(key, *args)
click to toggle source
Declare the breadcrumb which want to render in view.
<%= buoy :help, true %>
# File lib/buoys/helper.rb, line 8 def buoy(key, *args) @_buoys_renderer = Buoys::Renderer.new(self, key, *args) end
Also aliased as: breadcrumb
buoys()
click to toggle source
<% buoys.tap do |links| %>
<% if links.any? %> <ul> <% links.each do |link| %> <li class="<%= link.class %>"> <%= link_to link.text, link.url %> </li> <% end %> </ul> <% end %>
<% end %>
# File lib/buoys/helper.rb, line 24 def buoys buoys_renderer.render end
Also aliased as: breadcrumbs
buoys_renderer()
click to toggle source
# File lib/buoys/helper.rb, line 29 def buoys_renderer @_buoys_renderer ||= Buoys::Renderer.new(self, nil) # rubocop:disable Naming/MemoizedInstanceVariableName end