Re: [Rails] how do I render a partial view into a string from inside a view ?

Kevin Olbrich
2006-03-13T21:07:01Z

Call render_to_string in the controller and store the result in an
instance variable.  Supply the instance variable to the JS in the view.

or....

use remote_function to call a method that renders the required template.

_Kevin


On Monday, March 13, 2006, at 5:40 PM, Roberto Saccon
wrote:
>I want to pass the partial to a Javascript function ( which uses the data
>for for creating an iframe)
>
>render_to_string is not accessible form a view
>
>thanks in advance
>--
>Roberto Saccon - http://rsaccon.com
>
>
>_______________________________________________
>Rails mailing list
>Rails@lists.rubyonrails.org
>http://lists.rubyonrails.org/mailman/listinfo/rails
>





--
Posted with http://DevLists.com.  Sign up and save your time!