search for: find_all_by_video_id

Displaying 1 result from an estimated 1 matches for "find_all_by_video_id".

2012 Feb 17
0
Passing a value to js.erb
...#39;'#video-id'').val(); It certainly gets the value. The problem is then I need to pass it to the following. I tried, $(''#listtrans'').html(''<%= escape_javascript(render :partial => "videos/script_list", :locals => { :scripts => Script.find_all_by_video_id( idval ) } ) %>''); //<= idval this does not work. $(''#listtrans'').html(''<%= escape_javascript(render :partial => "videos/script_list", :locals => { :scripts => Script.find_all_by_video_id('' + idval + '') } ) %>&...