Sha256: a7957218787c73a87cda6b10b63e09e24523c8b2f5053200843f6b6ef2bc67bc

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 Bytes

Contents

<h1>Breadcrumb - Rich Snippets Sample</h1>
<h2>Basic</h2>
<section id="case-A-1">
  <h3>Simple Breadcrumb</h3>
  <%= breadcrumb [:index, :foods, :fruits] %>
</section>
<section id="case-A-2">
  <h3>Designate separator</h3>
  <%= breadcrumb [:index, :foods, :fruits], s: "/" %>
</section>
<h2>Advanced</h2>
<section id="case-B-1">
  <h3>Specify Parameters for URL (path) and i18n</h3>
  <%= breadcrumb [:index, :foods, :fruits, :fruits_color, :food], s: "/", args: [:color, :name]  %>
</section>
<section id="case-B-2">
  <h3>Customize Variables</h3>
  <%= breadcrumb [:index, :foods, :fruits, { path: fruits_color_path('Red'), label: 'Red' }, { path: food_path(color: 'Red', name: 'Apple'), label: 'Apple' }], s: "/" %>
</section>
<section id="case-B-3">
  <h3>Customize Variables and Specify Parameters</h3>
  <%= breadcrumb [:index, :foods, :fruits, { path: fruits_color_path, label: :fruits_color }, { path: food_path, label: :food }], s: "/", args: [:color, :name] %>
</section>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
snipp-0.0.6 app/views/snipp/breadcrumb.html.erb
snipp-0.0.5 app/views/snipp/breadcrumb.html.erb