0

I am using roo and would like to preview a spreadsheet by following the document says:
<%= spreadsheet @rspreadsheet, ["Tabelle"] %>
But the error says "undefined method `spreadsheet' " I don't know if i missed any gem.

BTW, I've added the 'spreadsheet' gem, while i feel it it nothing to do with this problem.

madth3
  • 7,275
  • 12
  • 50
  • 74
Frankel
  • 536
  • 2
  • 5
  • 19

1 Answers1

2

Roo doesn't seem to require the rails helper module.

require 'roo/roo_rails_helper'

in the controller works for me.

If you use Rails 3, you need to write

<%= raw spreadsheet @rspreadsheet, ["Tabelle"] %>

in the view.

mapb
  • 21
  • 2