🦆 Ducktrails
Automatically generates breadcrumbs based on routes.
Warning: This API is still alpha; we welcome PRs and ideas as issues.
Usage
For basic applications using a restful architecture, ducktrails should generate the breadcrumbs automatically.
For example, if the uri is /users/#{user-id}/posts/#{post-id}
Would render:
Home / All Users / user-name / All Posts / post-name
Installation
Add this line to your application's Gemfile:
gem 'ducktrails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ducktrails
Contributing
Please refer to each project's style guidelines and guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
bundle- Create the test db
bundle exec rake --rakefile test/dummy/Rakefile db:setup bundle exec raketo test.
- Ensure your test coverage is A+
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
License
The gem is available as open source under the terms of the MIT License.
