:any_action" to a file? mailing lists">


List Info

Thread: How to save output "render :action=>:any_action" to a file?




How to save output "render :action=>:any_action" to a file?
user name
2006-08-17 13:07:43
I need to save the output of my rails app to a file.   i.e.
instead of 
rendering a page when using "render
:action=>:any_action" i want the 
output to be saved to a file.

Anyone got any ideas?

Thanks
Chris

-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
RES: How to save output "render :action=>:any_action" to a file?
user name
2006-08-17 13:08:55
Hi,
Use render_to_string (ActionController::Base) and write
string to file

Att.,
Romeu

-----Mensagem original-----
De: rails-bounceslists.rubyonrails.org
[mailto:rails-bounceslists.rubyonrails.org] Em nome de Chris
Enviada em: quinta-feira, 17 de agosto de 2006 09:08
Para: railslists.rubyonrails.org
Assunto: [Rails] How to save output "render
:action=>:any_action" to a file?

I need to save the output of my rails app to a file.   i.e.
instead of 
rendering a page when using "render
:action=>:any_action" i want the 
output to be saved to a file.

Anyone got any ideas?

Thanks
Chris

-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.1/421 - Release
Date: 16/8/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.1/421 - Release
Date: 16/8/2006
 
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
How to save output "render :action=>:any_action" to a file?
user name
2006-08-17 13:11:33
render_to_string will do what you want. It returns a string of the rendered text, letting you do what you want with it.

Jason

On 8/17/06, Chris < gmail.com">evilgeeniusgmail.com> wrote:
I need to save the output of my rails app to a file. ;  i.e. instead of
rendering a page when using "render :action=&gt;:any_action" i want the
output to be saved to a file.

Anyone got any ideas?

Thanks
Chris

--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
lists.rubyonrails.org">Railslists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails

How to save output "render :action=>:any_action" to a f
user name
2006-08-17 13:12:34
render_to_string is what i was after.


-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )