You should be able to export to excel using just html tables while
chaning the content-type header. At least, this is what I''ve done in
ASP.NET and it works perfectly. If all you are doing is a single
sheet, this should work fine.
Josh
On 9/17/05, Philippe Creytens
<pcreytens-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> I need to export some data to an Excel file and found
> a reference in the HowTo section of the Rails Wiki.
> Followed it to the letter: added "export" action to
> controller, copied export.rxml and changed in
> accordance to model.
>
> When I call the export action I keep getting
> "undefined method `content_columns'' for #<Employee".
>
> The ActiveRecord mention content_columns but the error
> page says that it cannot be found.
>
> Suggestions?
>
> -- PC
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>