Ruby on Rails form_remote_tag missing template

Posted by Donald Hughes on Stack Overflow See other posts from Stack Overflow or by Donald Hughes
Published on 2010-03-01T16:39:15Z Indexed on 2010/04/08 1:03 UTC
Read the original article Hit count: 347

Filed under:
|
|

I'm using form_remote_tag(:url => {:controller => "home", :action => "search"}, :update => "mydiv"). When I click submit on the form "mydiv" is populated with the error "Template is missing. Missing template home/search.erb in view path app/views". I've tried multiple render options in def search, but they all result in the same error.

It looks like the search method is trying to use it's default render even though I'm specifying what I want.

I've tried:
render 'index'
render :text => 'Return this from my method!'

Is my url incorrect? Is it not submitting back to my home controller's search method?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby