ajax and rails 3.x
i'm trying to update a div in my index.html.erb file using Ajax in a rails app, but at this point i'm totally confused and totally frustrated by the lack of good explained tutorials(as far as i'm aware) on the web. 

I currently have an index.html.erb file which amongst other things has the following block:


    <table  border="1">
    <% @dbs.each do |db| %>
    <tr>
    	<td ><%= link_to db, :action => :show, :db => db,  :remote => true %></td>
    </tr>
    <% end %>
    </table>
    <div id="collections">
    
    </div>

my index controller just initliazies the @dbs var there and that's it, it doesn't have any respond_to blocks. I want to update the #collections div, but I'm struggling to understand how to go about doing this?
ajax and rails 3.x
===

i'm trying to update a div in my index.html.erb file using Ajax in a rails app, but at this point i'm totally confused and totally frustrated by the lack of good explained tutorials(as far as i'm aware) on the web. 

I currently have an index.html.erb file which amongst other things has the following block:


    <table  border="1">
    <% @dbs.each do |db| %>
    <tr>
    	<td ><%= link_to db, :action => :show, :db => db,  :remote => true %></td>
    </tr>
    <% end %>
    </table>
    <div id="collections">
    
    </div>

my index controller just initliazies the @dbs var there and that's it, it doesn't have any respond_to blocks. I want to update the #collections div, but I'm struggling to understand how to go about doing this?