respond_to :js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

respond_to :js

fugee ohu
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 [hidden email].
To post to this group, send email to [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: respond_to :js

Rob Zolkos-2

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

On Fri, Sep 14, 2018 at 12:37 AM fugee ohu <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
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 [hidden email].
To post to this group, send email to [hidden email].
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.