Method: DailyTable#test
- Defined in:
- app/models/daily_table.rb
#test ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'app/models/daily_table.rb', line 38 def test # ouputs html of the table begin fetch.to_html.html_safe rescue => e out = "#{e.}" out += "\n\nTrace shown in development environment:\n#{e.backtrace.join("\n")}" if Rails.env.development? out.gsub("\n", "<br/>").html_safe end end |