I'm following this tutorial and having a problem where using ruby in an ActionCable file causes an undefined method 'body' error. How can I use ruby in this file? I want the data that's submitted over Action Cable to be properly forma...
For example, in https://www.youtube.com/watch?v=n0WUjGkDFS0 at 10:36 he mentions the ability to create multiple channels, but how would one actually accomplish this?  According to Rails 5 ActionCable establish stream from URL parameters a variable ca...
When I run my react-native mobile app, the server says it connects to the PostChannel. It creates the post, however I get no response in the 'received' function so it does not update in real time.  This is my react-native code:  import Action...
I have a code in my application.html.haml that decides whether to subscribe the user to a given channel or not, depending on some user attribute.  The thing is that, given I have this piece of code in the body, when I click a link to be redirected to...
I have a Vue app that connects to a Rails back-end and need to find out whether the connection is established or not.  In my app I do:  var app = new Vue({     name: "Site",     store,     router,     i18n,     components: {},     mixins: [],...
I'm using ActionCable in my RoR application designed to function as a chatroom for roleplays, according to Sitepoint's tutorial. I have set it up, and messages are, as expected, broadcasted whenever one is created. However, each time the chat...
im building a chat app and  having a bug that when you type a message it displays two messages instead of one , but when i reload the page then the duplicates dissapear. Can someone please tell me what the problem is ? thanks !   javascripts/channels...
I'm making a realtime chat application in Rails and I'm having trouble differentiating between the messages sent by each user. In my message partial I use the current_user session to apply either .current-user or .other-user to each message....
I have a controller with a background job to start ActionCable subscribtion:    def result     LinkBroadcastJob.perform_later(links)   end   It performs this action to stream links:    def perform(links)       links.each do |link|           ActionCab...
Relevant Info about Environment   Rails Version: 5.2 Devise Authentication   Code  Warden hooks for setting cookies  # config/initializers/warden_hooks.rb Warden::Manager.after_set_user do |user,auth,opts|   scope = opts[:scope]   auth.cookies.signed...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.