title: Ruby On Rails 3 submit form AJAX update results in div
body: <p>I am stuck; I did a search and I can't find a pointer on how to get this project to work. I have a form on my index.html.erb as:</p>
  
  <pre><code>&lt;html&gt;   &lt;head&gt;
      &lt;title&gt;Ajax List Demo&lt;/title&gt;   &lt;h1&gt;Listing posts&lt;/h1&gt; 
  
      &lt;%= javascript_include_tag "prototype" %&gt;   &lt;/head&gt;   &lt;body&gt;
      &lt;h3&gt;Add to list using Ajax&lt;/h3&gt;
      &lt;% form_tag (  :remote=&gt;true, :update =&gt; 'my_list', :action =&gt; :list , :method=&gt;:post, :format =&gt;:xml ) do %&gt;
  
        Enter the url:
        &lt;%= text_field_tag 'url' ,'', :size =&gt; 80 %&gt;
        &lt;%= submit_tag "Find" %&gt;
      &lt;% end %&gt;
      &lt;div id="my_list"&gt;&lt;%= render :partial =&gt; 'profiles/list' %&gt;&lt;/div&gt;   &lt;/body&gt; &lt;/html&gt;
  </code></pre>
  
  <p>Now I have a div with this called my_list. When I submit the form I want my partial _list.html.erb (inside profiles dir, tried home dir too) to update with the results of list.</p>
  
  <p>My home controller has this method:</p>
  
  <pre><code>def list
      puts "here!!!!"
     reader = Reader.new
    @profiles =  reader.processURL(params[:url])
      render :partial=&gt;'profiles/list', :locals =&gt; { :profiles =&gt; @profiles}
  end
  </code></pre>
  
  <p>I end up getting this error:</p>
  
  <pre><code>ActionView::MissingTemplate (Missing partial profiles/list with {:locale=&gt;[:en, :en], :handlers=&gt;[:rjs, :builder, :rhtml, :rxml, :
  erb], :formats=&gt;[:xml]} in view paths "C:/Users/....tree/app/views"):
    app/controllers/home_controller.rb:22:in `list'
  
  Rendered C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/missing_template.erb
  within rescues/layout (1.0ms)
  </code></pre>
  
  <p>Could anyone help me or send me in the right direction to understand how to update a div rendering via Rails on form submit?  Thanks again.</p>