diff options
| author | Michel Etienne | 2014-09-19 14:56:09 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-09-19 14:56:09 +0200 |
| commit | 4a278cad118f7110cc8304da6288e4e6b6047181 (patch) | |
| tree | 1fd49d6c6d0ef07da6f2cfd60d7304640761e268 /app/controllers/exports_controller.rb | |
| parent | bf6bea71846d2ab079d592086251c6af426c80d9 (diff) | |
| download | chouette-core-4a278cad118f7110cc8304da6288e4e6b6047181.tar.bz2 | |
refactor breadcrumbs
Diffstat (limited to 'app/controllers/exports_controller.rb')
| -rw-r--r-- | app/controllers/exports_controller.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index d5723ff78..8de7e4f1f 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -1,5 +1,6 @@ class ExportsController < ChouetteController - + defaults :resource_class => Export + respond_to :html, :xml, :json, :js respond_to :zip, :only => :show @@ -7,7 +8,7 @@ class ExportsController < ChouetteController def new new! do - add_breadcrumb Referential.human_attribute_name("exports"), referential_exports_path(@referential) + build_breadcrumb :show available_exports end end @@ -20,9 +21,9 @@ class ExportsController < ChouetteController end def show - add_breadcrumb Referential.human_attribute_name("exports"), referential_exports_path(@referential) show! do |format| format.zip { send_file @export.file, :type => :zip } + build_breadcrumb :show end end |
