Module: Tableview::Responder
- Defined in:
- lib/tableview/responder.rb
Instance Method Summary collapse
- #to_ascii ⇒ Object
-
#to_csv ⇒ Object
def to_format puts “#to_format with format=#formatformat.inspect called” end.
- #to_html ⇒ Object
- #to_xls ⇒ Object
Instance Method Details
#to_ascii ⇒ Object
25 26 27 |
# File 'lib/tableview/responder.rb', line 25 def to_ascii render :partial => "table" end |
#to_csv ⇒ Object
def to_format
puts "#to_format with format=#{format.inspect} called"
end
17 18 19 |
# File 'lib/tableview/responder.rb', line 17 def to_csv controller.send_data(controller.render_to_string :partial => "table") end |
#to_html ⇒ Object
9 10 11 |
# File 'lib/tableview/responder.rb', line 9 def to_html super end |
#to_xls ⇒ Object
21 22 23 |
# File 'lib/tableview/responder.rb', line 21 def to_xls controller.send_data(controller.render_to_string :partial => "table") end |