I want to add a JavaScript on one view page, how can i do that? I'm using rails 4 in my application.
I have tried this but it is not working, in my view
<script type="text/javascript">
$(function() {
$('user_button').click(function() {
$('some_div').show();
}
});
</script>