You can try this helper; (put in application_helper.rb, use by view) it make an ajax call from given url.
def render_remote(url, view = 'remote') options = {} options[:update] = view options[:url] = url options[:method] = :get render :inline => %{<span id="#{view}"><p>Loading...</p><script type="text/javascript" language="JavaScript">#{remote_function(options)}</script></span>} end
Regards, herngwah