Render autocomplete with rjs

Hi, you can do one of the following:

a) respond_to block

 e.g.  def product
              respond_to do | format |
                format.html
                format.js { render :action => "project.rjs" }
                format.xml
              end
          end

          Note:  This will

return the appropriate response based on the HTTP Accept header.

b) render :action => “product.rjs”

Good luck,

-Conrad

Hi, you can also find further information in section 12.1 of the ‘Agile Web Development with Rails 2ed’.

-Conrad