Controller not rendering existing js.erb file

In my PlaceController, I have a search method, called remotely from a

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 =>


Error: test_should_search_places(Backoffice::PlacesControllerTest)
ActionView::MissingTemplate: Missing template backoffice/places/search
with {:locale=>[:en], :formats=>[:js, :html], :handlers=>[:erb,
: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 ?


template created manually as "search.js.erb " the trailing space was

Le mardi 27 novembre 2012 12:35:34 UTC+1, Erwin a crit :

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs