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 wrote:
> respond_to :js, only: :videochat
>
> def
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
2 matches
Mail list logo