2013-07-11 34 views

回答

0

_my_partial.html.erb試試這個:

對於html

# partial code 

<script type="text/javascript"> 
    your_function(); 
</script> 

對於haml

# partial code 

:javascript 
    your_function(#{@variable});