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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Francis Sinson
2007-Mar-13 15:16 UTC
Re: Question about export to excel example in rails wiki
Francis Sinson wrote:> 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, > /franeeFound 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:) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---