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
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
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
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs