Forum: Ruby on Rails jQuery and rails events

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
sa 1. (Guest)
on 2009-02-03 09:51
I read DHH's post on using various js libraries with rails, and thought
I'd give it a try with jQuery (

What I have is a page composed of various partials, and I'm trying to
invoke jQuery to render a different partial when something is clicked

What I can't figure out is how to call the action from jQuery that'll
cause the actual partial to be rendered. With prototype this would
probably be done with

<span onclick="
<%= remote_function :url => { :action => :some_action } %> and the

will handle it from there. help?...
This topic is locked and can not be replied to.