Module: Tableview::Responder

Defined in:
lib/tableview/responder.rb

Instance Method Summary collapse

Instance Method Details

#to_asciiObject



25
26
27
# File 'lib/tableview/responder.rb', line 25

def to_ascii
  render :partial => "table"
end

#to_csvObject

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_htmlObject



9
10
11
# File 'lib/tableview/responder.rb', line 9

def to_html
  super
end

#to_xlsObject



21
22
23
# File 'lib/tableview/responder.rb', line 21

def to_xls
  controller.send_data(controller.render_to_string :partial => "table")
end