respond_to :js

20 views
Skip to first unread message

fugee ohu

unread,
Sep 13, 2018, 10:36:35 AM9/13/18
to Ruby on Rails: Talk
respond_to :js, only: :videochat

  def videochat
    respond_to do |format|
        format.js
    end
  end

ActionController::UnknownFormat in ConversationsController#videochat
ActionController::UnknownFormat

Rob Zolkos

unread,
Sep 13, 2018, 10:44:28 AM9/13/18
to rubyonra...@googlegroups.com

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

--
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 rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b2b3ee36-f820-41e0-99df-032f7ace16fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages