I want to do simple stuff. In my controller I have this: render :update do |page| page.replace_html 'scripts', :partial => 'scripts', :locals => {:question => @question} end
And in the partial I have this: <% if question.sound %> Sound loaded! <script src="/javascripts/soundmanager2-jsmin.js?1264193894" type="text/javascript" /> <script src="/javascripts/soundmanager2-rails.js?1264193894" type="text/javascript" /> <script type="text/javascript"> soundManager.url = '/soundmanager2.swf'; soundManager.debugMode = false; soundManager.consoleOnly = false; </script> <script type="text/javascript"> soundManager.onload = function() { soundManager.createSound("question_sound", "<%= url_for_file_column('question', :sound) %>"); } </script> <% end %> Well, when I run it, the message "Sound loaded!" appears, but the scripts are not rendered (I inspect the elements with Chrome and with Firebug, and the scripts do not appear). Is there anything wrong when I try to do this? Is there a way to make this work? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.