diff --git a/app/controllers/admin/booths_controller.rb b/app/controllers/admin/booths_controller.rb index b39a2df4..aceceee0 100644 --- a/app/controllers/admin/booths_controller.rb +++ b/app/controllers/admin/booths_controller.rb @@ -14,12 +14,12 @@ module Admin format.json { render json: Booth.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" - render 'booths' + render 'booths', layout: false end - format.pdf { render 'booths' } + format.pdf { render 'booths', layout: false } format.csv do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.csv\"" - render 'booths' + render 'booths', layout: false end end end diff --git a/app/controllers/admin/events_controller.rb b/app/controllers/admin/events_controller.rb index bf579106..d8e9c1c9 100644 --- a/app/controllers/admin/events_controller.rb +++ b/app/controllers/admin/events_controller.rb @@ -28,12 +28,12 @@ module Admin format.json { render json: Event.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" - render 'events' + render 'events', layout: false end - format.pdf { render 'events' } + format.pdf { render 'events', layout: false } format.csv do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.csv\"" - render 'events' + render 'events', layout: false end end end diff --git a/app/controllers/admin/tracks_controller.rb b/app/controllers/admin/tracks_controller.rb index 7d24e4a3..a4f4c69e 100644 --- a/app/controllers/admin/tracks_controller.rb +++ b/app/controllers/admin/tracks_controller.rb @@ -19,12 +19,12 @@ module Admin format.json { render json: Track.where(state: :confirmed, program: @program).to_json } format.xlsx do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.xlsx\"" - render 'tracks' + render 'tracks', layout: false end - format.pdf { render 'tracks' } + format.pdf { render 'tracks', layout: false } format.csv do response.headers['Content-Disposition'] = "attachment; filename=\"#{@file_name}.csv\"" - render 'tracks' + render 'tracks', layout: false end end end