respond_to :js

respond_to :js, only: :videochat

def videochat

respond_to do |format|

format.js

end

end

ActionController::UnknownFormat in ConversationsController#videochat

ActionController::UnknownFormat

This was removed at class level in Rails 4.2 . https://edgeguides.rubyonrails.org/4_2_release_notes.html#respond-with-class-level-respond-to

You can leave the instance level one it will work fine.