title: How to call a rails method from in jQuery
body: <p>I have this JQuery code:</p>
  
  <pre><code>$("p.exclamation, div#notification_box").live("mouseover", function() {
  
      });
  </code></pre>
  
  <p>and I want to call this rails method from inside the jQuery code as a callback:</p>
  
  <pre><code>def render_read
    self.user_notifications.where(:read =&gt; false).each do |n|
      n.read = true
      n.save
    end
  end
  </code></pre>
  
  <p>This method is in my user model. Is there any way to do this?</p>