Sha256: 2f32ddcbe19a6524ed3b9cf80658c95914f6bceeaf18947e878c3b6b31beaeb9
Contents?: true
Size: 913 Bytes
Versions: 4
Compression:
Stored size: 913 Bytes
Contents
# frozen_string_literal: true buoy :example do link :example, 'http://localhost:3000' end # buoy :stories do # link 'Stories', stories_path # end # `crumb` is the alias of `buoy`. # ex) # crumb :stories do # link 'Stories', stories_path # end # link's first argument, it is used as I18n key and defalt value. # The key is searched in the scope of 'buoys.breadcrumbs'. # # ex) # buoy :story do |story| # link :story, story_path(story) # # same as `link I18n.t(:story, scope: 'buoys.breadcrumbs', default: story), story_path(story)` # end # You can also override Buoys configuration # # ex) # buoy :story_tasks do |story| # link :story_tasks, story_tasks_path # pre_buoy :story, story, {link_current: true} # end # You can use `pre_buoy` as parent. `parent` is the alias of `pre_buoy` # # ex) # buoy :story_tasks do |story| # link :story_tasks, story_tasks_path # parent :story, story # end
Version data entries
4 entries across 4 versions & 1 rubygems