Module: StableHelper
- Defined in:
- app/helpers/stable_helper.rb
Instance Method Summary collapse
- #stable(options = {}) ⇒ Object
- #table(options = {}) ⇒ Object
- #tbody ⇒ Object
- #td(content, html_options = {}) ⇒ Object
- #thead ⇒ Object
- #tr(html_options = {}) ⇒ Object
Instance Method Details
#stable(options = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/stable_helper.rb', line 3 def stable( = {}) @builder = STableBuilder.new(self, '/stable/stable') @builder.table() do yield end end |
#table(options = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'app/helpers/stable_helper.rb', line 10 def table( = {}) @builder = STableBuilder.new(self, '/stable/table') @builder.table() do yield end end |
#tbody ⇒ Object
33 34 35 36 37 |
# File 'app/helpers/stable_helper.rb', line 33 def tbody @builder.tbody do yield end end |
#td(content, html_options = {}) ⇒ Object
23 24 25 |
# File 'app/helpers/stable_helper.rb', line 23 def td(content, = {}) @builder.td content, end |
#thead ⇒ Object
27 28 29 30 31 |
# File 'app/helpers/stable_helper.rb', line 27 def thead @builder.thead do yield end end |
#tr(html_options = {}) ⇒ Object
17 18 19 20 21 |
# File 'app/helpers/stable_helper.rb', line 17 def tr( = {}) @builder.tr do yield end end |