diff options
| author | Xinhui | 2017-04-07 11:51:09 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-04-07 12:21:00 +0200 | 
| commit | 5b888d05869f88d196bf53f229b6d3659b2305b4 (patch) | |
| tree | 157aea1384e11bd1bc27b9e0d65279b09986521e /app/controllers/time_tables_controller.rb | |
| parent | e93446a6a38077e7a13e9a6017909d43e6b778a7 (diff) | |
| download | chouette-core-5b888d05869f88d196bf53f229b6d3659b2305b4.tar.bz2 | |
New route timetables#month return days in a month
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
| -rw-r--r-- | app/controllers/time_tables_controller.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb index 50c925eac..5dc84ddf1 100644 --- a/app/controllers/time_tables_controller.rb +++ b/app/controllers/time_tables_controller.rb @@ -18,6 +18,11 @@ class TimeTablesController < ChouetteController      end    end +  def month +    @date = params['date'] ? Date.parse(params['date']) : Date.today +    @time_table = resource +  end +    def new      @autocomplete_items = ActsAsTaggableOn::Tag.all      new! do | 
