Class: DailyTablesController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/daily_tables_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



9
10
11
12
# File 'app/controllers/daily_tables_controller.rb', line 9

def create
  build_resource.user = current_user
  create!
end

#newObject



4
5
6
7
# File 'app/controllers/daily_tables_controller.rb', line 4

def new
  build_resource.metric = "SqlQuery"
  new!
end

#showObject



18
19
20
21
22
# File 'app/controllers/daily_tables_controller.rb', line 18

def show
  show! do
    @test_html = @daily_table.test if params[:test]
  end
end

#updateObject



14
15
16
# File 'app/controllers/daily_tables_controller.rb', line 14

def update
  update!
end