You can try the render_to_string method: 
http://api.rubyonrails.com/classes/ActionController/Base.html#M000475

Regards

GA Gorter escribió:
> How can i get the html code create by a view into the controller
>
> I need to save the html created into a view into a file
> something like
>
>  File.open( 'index.html', 'w' ){|file| file.write (The_view)}
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to