Re: [Rails] Passing instance variable to js.erb
On 16 February 2012 05:09, Soichi Ishida <lists@ruby-forum.com> wrote:
> I would like to pass an instance variable to "HERE!!!" in 'save.js.erb'
$('#listtrans').html('<%= escape_javascript(render :partial =>
"videos/script_list", :locals => { :scripts =>
Script.find_all_by_video_id(@video.id) } ) %>')
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home