> and in your preview.js.erb file do something like:
> 
> jQuery('#preview').html('<%= javascript_escape(render(:partial => 
> "preview")) %>');
> 
> of course, you'd also need a partial named _preview.erb (or 
> _preview.haml)
> 
> good luck!


oops, should have said escape_javascript

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
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