Forum: Ruby on Rails controller not rendering existing js.erb file

Posted by Kad Kerforn (kadoudal)
on 2012-11-27 12:36
(Received via mailing list)
In my PlaceController, I have  a search method, called remotely from a 
form

the method is executed, but rendering is not executed as the template is
stated as missing ..
but it's there ...

    post :search, :locale => I18n.locale, :format => :js, :country =>
"United"

Error: test_should_search_places(Backoffice::PlacesControllerTest)
  ActionView::MissingTemplate: Missing template backoffice/places/search
with {:locale=>[:en], :formats=>[:js, :html], :handlers=>[:erb, 
:builder,
:coffee, :haml]}. Searched in:

and I have a template in my views located at :
 views / backoffice/ places / search.js.erb

what could be wrong ? where should I look for any clue ?

thanks
Posted by Kad Kerforn (kadoudal)
on 2012-11-27 13:41
(Received via mailing list)
template created manually as "search.js.erb "   the trailing space was
invisible

Le mardi 27 novembre 2012 12:35:34 UTC+1, Erwin a crit :
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.