-
Notifications
You must be signed in to change notification settings - Fork 0
Rails plugin acts_as_breadcrumbs
License
zenpow/acts_as_breadcrumbs
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= acts_as_breadcrumbs This plugin uses an acts_as_tree model and creates a breadcrumbs trail attribute using a base attribute. == Resources === Homepage * https://actsasflinn.com/some_post_to_come === Installation * script/plugin install svn:https://rubyforge.org/var/svn/phillyonrails/acts_as_breadcrumbs/trunk === Requirements * acts_as_tree - The model has to acts_as_tree! == Examples class WebPage < ActiveRecord::Base acts_as_tree acts_as_breadcrumbs(:attr => :url, :basename => :slug, :separator => "/") acts_as_breadcrumbs(:basename => :title, :separator => " > ") end web_page.urls #=> "foo/bar/baz" web_page.breadcrumbs #=> "Foo > Bar > Baz" class Location < ActiveRecord::Base acts_as_tree acts_as_breadcrumbs(:attr => :location_string) end location.location_string #=> "HQ:FL01:RM03" class Soldier < ActiveRecord::Base acts_as_tree acts_as_breadcrumbs(:attr => :chain_o_command, :separator => " > ") end soldier.chain_o_command #=> "General Hailstone > Colonel Stanley > LTC Mueller" == License Released under the MIT license. == Authors * Flinn Mueller - https://actsasflinn.com
About
Rails plugin acts_as_breadcrumbs
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published