Here is the javascript in the .js.erb
$(document).ready(function () {
var i = 888
$( "#previewpicture" ).html( "<%= escape_javascript( render( :partial => "show_picture", :locals => { :@v_url => 'i' } ) ) %>" );
});
@v_url is defined in the controller and alert(<%= @v_url %>) is in the partial _show_picture.html.erb
The alert display i instead of 888. What is the correct syntax for :locals => { :@v_url => 'i'}
Thanks Clin