But the error say" /> But the error say" /> But the error say"/>

Roo cannot display spreadsheet, method unfound

414 views Asked by At

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.

1

There are 1 answers

0
mapb On

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.