I need response page in txt not in HTML. How I can response information in txt? Thank''s Bruno -- Posted via http://www.ruby-forum.com/.
On Monday 08 May 2006 22:53, String numecal validate! wrote:> I need response page in txt not in HTML. > How I can response information in txt?In your controller action: headers[''Content-Type''] = ''text/plain'' render :layout => false Cheers, ~Dave -- Dave Silvester Rent-A-Monkey Website Development http://www.rentamonkey.com/ PGP Key: http://www.rentamonkey.com/pgpkey.asc
On May 8, 2006, at 2:53 PM, String numecal validate! wrote:> I need response page in txt not in HTML. > How I can response information in txt?Set the content type header to ''text/plain'' in your action. Please be mindful that the ruby forum is mirrored to a mailing list - "throwaway" questions like this really clog up the works. Thanks, jeremy