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. On Fri, Sep 14, 2018 at 12:37 AM fugee ohu <[email protected]> wrote: > respond_to :js, only: :videochat > > def videochat > respond_to do |format| > format.js > end > end > > ActionController::UnknownFormat in ConversationsController#videochat > ActionController::UnknownFormat > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/b2b3ee36-f820-41e0-99df-032f7ace16fa%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-talk/b2b3ee36-f820-41e0-99df-032f7ace16fa%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzLwj4TbENUnBL7_oYufPDbEdJ4bA1gwH4fxo-0XQpa6vQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

