diff options
| author | Michel Etienne | 2014-09-22 11:17:33 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-09-22 11:17:33 +0200 |
| commit | 9e25d62af63c460583c05f4c33245a5dd1a5b2b9 (patch) | |
| tree | 0480062cdcb96c837268cf1a997336bf89ba495c /app/controllers/breadcrumb_controller.rb | |
| parent | d86f7fe8cad332890f0be146f229cde72dc52eec (diff) | |
| download | chouette-core-9e25d62af63c460583c05f4c33245a5dd1a5b2b9.tar.bz2 | |
add breadcrumbs on home and user forms
Diffstat (limited to 'app/controllers/breadcrumb_controller.rb')
| -rw-r--r-- | app/controllers/breadcrumb_controller.rb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app/controllers/breadcrumb_controller.rb b/app/controllers/breadcrumb_controller.rb new file mode 100644 index 000000000..022636709 --- /dev/null +++ b/app/controllers/breadcrumb_controller.rb @@ -0,0 +1,41 @@ +class BreadcrumbController < InheritedResources::Base + + include BreadcrumbHelper + + def show + show! do + build_breadcrumb :show + end + end + + def index + index! do + build_breadcrumb :index + end + end + + def edit + edit! do + build_breadcrumb :edit + end + end + + def update + update! do |success, failure| + build_breadcrumb :edit + end + end + + def new + new! do + build_breadcrumb :show + end + end + + def create + create! do |success, failure| + build_breadcrumb :show + end + end + +end |
