Module: StableHelper

Defined in:
app/helpers/stable_helper.rb

Instance Method Summary collapse

Instance Method Details

#stable(options = {}) ⇒ Object



3
4
5
6
7
8
# File 'app/helpers/stable_helper.rb', line 3

def stable(options = {})
	@builder = STableBuilder.new(self, '/stable/stable')
	@builder.table(options) do
		yield
	end
end

#table(options = {}) ⇒ Object



10
11
12
13
14
15
# File 'app/helpers/stable_helper.rb', line 10

def table(options = {})
	@builder = STableBuilder.new(self, '/stable/table')
	@builder.table(options) do
		yield
	end
end

#tbodyObject



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, html_options = {})
	@builder.td content, html_options
end

#theadObject



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(html_options = {})
	@builder.tr html_options do
		yield
	end
end