I was trying to use jQuery in Rails. I'm having a problem getting started off. I need to attach a jQuery function. Suppose, I have this link_to helper
<%= link_to "Sign in", :id => "user_sign_in" %>
I need to show a popup window when a user clicks this link. What do I write in my application.js file? This is what I have so far, but it's not working:
jQuery(function(){
$("#user_sign_in").live("click", function(){
alert('I'm hit')
})
};)
Please suggest!