Darkwax wrote:> Hi all, quick question to all of you ruby on rails experts. I need to
> redirect the output of a url to an actual physical file. In other words,
> I need to have what I see in the web browser to intead be written into a
> file. Any ideas? Thank you.
>
> Darkwax
Step 1.
You mean the output of a foriegn url? or the output of some kind of
template? If the latter then render the template to a string in the
controller, eg this could be used to render some kind of invoice.
text = render_to_string ( :action => :invoice_doc_view )
Step 2.
Now the question is do you mean the "text" string is then saved to the
rails server filesystem or do you want it to be saved to the
users/clients filesystem?
--
Posted via http://www.ruby-forum.com/.