Hello--

I have a working partial that iterates a collection and spits out some  
lines of text. There's a periodic updater that watches a search box  
and hits a search controller (different from the first one) that is  
meant to update the div containing those lines of text with new ones  
from the search. Here's what I have:

app/controllers/gem_searches.rb

def index
   @gems = Gems.all(:limit => 25)
   render :index, :format => :js
end

app/views/gem_searches/index.js.erb

$('gem-list').update('<%= partial "gem_files/gem_list" %>');

app/views/gem_files/_gem_list.html.haml

- @gems.each do |gem|
   .someblockelement
     = gem.full_name

It's supposed to use the same old partial template as is working on  
the non-Ajasx rendered page. Someplace in here, and it seems to be  
index.js.erb, I am getting "nil is not a symbol" and that's in partial  
(controller/mixins/render.rb).

Any thoughts as to what's wrong here?

Thanks
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to