Take the 2-minute tour ×  I'm facing a problem with rspec and
controllers  i'm spec'ing an update action, so to do it i call
the following code:  put :update, :id => "1", :ntp =>
{:name=>'myservah'}  My controller has the following code:  def
update  if @ntp.update_attributes(params[:ntp])
flash.now[:notice] = "Successfully updated ntp."
flash.now[:error] = ((errors_to_a(@ntp)*'.<br />')+'.')  render
:partial => 'update'  And i'm getting the following error:
Failure/Error: put :update, :id => "1", :ntp =>
{:name=>'myservah'} Missing partial ntps/update with
{:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml],
:formats=>[:html], :locale=>[:en, :en]} in view paths "#"  My
question is: should i explicit say which handler i have? Today
my partial is named '_update.js.erb'.  BTW, my code works, i
render the "js" version of update, since i just run some scripts
share|improve this question add comment  1 Answer  up vote 12
down vote accepted  Rails detects the format of the response
from certain request paramete