# Question about export to excel example in rails wiki

**URL:** <https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693>\
**Category:** Rails\
**Created:** [March 13, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693 "2007-03-13T16:03:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [March 13, 2007, 4:03pm UTC](https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693/1 "2007-03-13T16:03:34Z")

</div>

Hi,

I tried running this example ==\>

[http://wiki.rubyonrails.com/rails/pages/HowToExportToExcel](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

---

<div class="post-metadata">

**Author:** ![franee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b5a626/32.png) [@franee](https://www.ruby-forum.com/u/franee)\
**Post date:** [March 13, 2007, 4:16pm UTC](https://www.ruby-forum.com/t/question-about-export-to-excel-example-in-rails-wiki/88693/2 "2007-03-13T16:16:29Z")

</div>

Francis S. wrote:

> Hi,
> 
> I tried running this example ==\>
> 
> [Peak Obsession](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

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:)
