Rails: respond_to return unknown format error

This error occurs when you use only format.js inside respond_to block

#Only format.js creates error
respond_to do |format| format.js { render 'update' } end
#To get out of this error add format other than format.js
respond_to do |format|
   format.html { render :partial => 'new_proposal_wrapper' }
   format.js { render 'update' }
end
Advertisements