Sha256: 546dc252ea86b7fd376b097c1c49f156fdba816ebfa85abec2e6cc05e38ab76e
Contents?: true
Size: 913 Bytes
Versions: 2
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 alse 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
buoys-1.1.0 | lib/generators/buoys/templates/breadcrumbs.rb |
buoys-1.0.0 | lib/generators/buoys/templates/breadcrumbs.rb |