Class | Padrino::Contrib::Helpers::Breadcrumb |
In: |
lib/padrino-contrib/helpers/breadcrumbs.rb
|
Parent: | Object |
DEFAULT_URL | = | "/" |
DEFAULT_CAPTION | = | "Home Page" |
home | [RW] | |
items | [RW] |
Add a new breadcrumbs.
@param [String] name
The name of resource.
@param [Symbol] name
The name of resource.
@param [String] url
The url href.
@param [String] caption
The text caption.
@param [Hash] options
The HTML options to include in li.
@example
breadcrumbs.add "foo", "/foo", "Foo Link", :id => "foo-id" breadcrumbs.add :foo, "/foo", "Foo Link", :class => "foo-class"
Remove a breadcrumb.
@param [String] name
The name of resource to delete from breadcrumbs list.
@example
breadcrumbs.del "foo" breadcrumbs.del :foo