Class: DailyTablesController
- Inherits:
-
InheritedResources::Base
- Object
- InheritedResources::Base
- DailyTablesController
- Defined in:
- app/controllers/daily_tables_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 |
# File 'app/controllers/daily_tables_controller.rb', line 9 def create build_resource.user = current_user create! end |
#new ⇒ Object
4 5 6 7 |
# File 'app/controllers/daily_tables_controller.rb', line 4 def new build_resource.metric = "SqlQuery" new! end |
#show ⇒ Object
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 |
#update ⇒ Object
14 15 16 |
# File 'app/controllers/daily_tables_controller.rb', line 14 def update update! end |