From 5b4136b2907ffc918210495d8f9a29c1e7d681fb Mon Sep 17 00:00:00 2001 From: Bruno Perles Date: Wed, 28 Oct 2015 11:35:08 +0100 Subject: Merge Timeband feature and revert Gemfile --- app/controllers/timebands_controller.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/controllers/timebands_controller.rb (limited to 'app/controllers/timebands_controller.rb') diff --git a/app/controllers/timebands_controller.rb b/app/controllers/timebands_controller.rb new file mode 100644 index 000000000..446255cac --- /dev/null +++ b/app/controllers/timebands_controller.rb @@ -0,0 +1,20 @@ +class TimebandsController < ChouetteController + + defaults :resource_class => Chouette::Timeband + + respond_to :html + + belongs_to :referential + + def new + new! do + build_breadcrumb :new + end + end + + private + + def timeband_params + params.require(:timeband).permit( :name, :start_time, :end_time ) + end +end -- cgit v1.2.3