How do I render a partial view into a string from inside a v

I want to pass the partial to a Javascript function ( which uses the
for for creating an iframe)

render_to_string is not accessible form a view

thanks in advance

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.


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


Kevin, thanks very much

On 13 Mar 2006 21:07:02 -0000, Kevin O. <

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs