2007-08-11 local_javascriptタグ RAILS def local_javascript(&block) concat(javascript_tag(<<-EOS), block.binding) (function() { #{capture(&block)}; })(); EOS end