config/breadcrumbs.rb
crumb :root do
link 'Home', root_path
end
crumb :teams do
link 'Teams', teams_path
parent :root
end
crumb :team_swimmers do |team|
link team.name, team_swimmers_path(team)
parent :teams
end
crumb :swimmer_results do |swimmer|
link swimmer.name, swimmer_results_path(swimmer)
parent :team_swimmers, swimmer.team
end
# crumb :projects do
# link "Projects", projects_path
# end
# crumb :project do |project|
# link project.name, project_path(project)
# parent :projects
# end
# crumb :project_issues do |project|
# link "Issues", project_issues_path(project)
# parent :project, project
# end
# crumb :issue do |issue|
# link issue.title, issue_path(issue)
# parent :project_issues, issue.project
# end
# If you want to split your breadcrumbs configuration over multiple files, you
# can create a folder named `config/breadcrumbs` and put your configuration
# files there. All *.rb files (e.g. `frontend.rb` or `products.rb`) in that
# folder are loaded and reloaded automatically when you change them, just like
# this file (`config/breadcrumbs.rb`).