I need response page in txt not in HTML.
How I can response information in txt?
Thank’s
Bruno
I need response page in txt not in HTML.
How I can response information in txt?
Thank’s
Bruno
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 S.
Rent-A-Monkey Website Development
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs