This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What I like to do is include the per-view Javascript in a content_for :head block and then yield to that block in your application layout. For example | |
If it's pretty short then: | |
<% content_for :head do %> | |
<script type="text/javascript"> | |
$(function() { | |
$('user_rating_positve').click(function() { | |
$('some_div).show(); | |
} |