[Nitro] Changing Spark content-type

James Britt james_b at neurogami.com
Fri Oct 14 19:00:21 EDT 2005


I'm using 0.3.0 of Spark, and for certain requests I want the view 
method to return the page with a content-type of /text/xml

I tried simply adding this line to the method, but it doesn't seem to 
change anything:


@context.content_type =   'text/xml'


What do I need to do?

Thanks,


James

Enjoying RubyConf

-- 

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com  - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com  - Playing with Better Toys



More information about the Nitro-general mailing list