Question about export to excel example in rails wiki

Hi,

I tried running this example ==>

http://wiki.rubyonrails.com/rails/pages/HowToExportToExcel

My problem is that the instance variable @records says it is null in the
RXML template. I also tried creating other instance variables in the
controller but it can’t be seen inside the RXML template. I tried using
using the params and it works correctly.

Has anybody got this example going? I had no experience with RXML
templates so maybe somebody could point out whats going on here.

Thanks,
/franee

Francis S. wrote:

Hi,

I tried running this example ==>

Peak Obsession

My problem is that the instance variable @records says it is null in the
RXML template. I also tried creating other instance variables in the
controller but it can’t be seen inside the RXML template. I tried using
using the params and it works correctly.

Has anybody got this example going? I had no experience with RXML
templates so maybe somebody could point out whats going on here.

Thanks,
/franee

Found the problem, it was because the controller methods was placed
below a private method which i forgot. stupid me@-)

Please discard the question. sorry guys:)