Danniel Tung


360 Experience
3 Lessons Completed
0 Questions Solved


Hey Cris! is there any video from (revised or not) that I can take a look on how you worked on that sidebar? Thanks!

Posted in Not able to Subscribe

Hi there! Im pretty new to programming and have been taking the Multiple Chatroom lessons but....
Getting this error...can somebody help me with it?

Started GET "/cable" for ::1 at 2021-05-14 17:47:20 -0300
Started GET "/cable/" [WebSocket] for ::1 at 2021-05-14 17:47:20 -0300
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
Could not execute command from ({"command"=>"subscribe", "identifier"=>"{\"channel\":\"MessageChannel\",\"id\":\"1\"}"}) [NameError - undefined local variable or method `current_user' for #<MessageChannel:0x00007fe698e41d68>]: /Users/dannieltung/code/dannieltung/SLACK-GoRails/app/channels/message_channel.rb:4:in `subscribed' | /Users/dannieltung/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actioncable- `block in subscribe_to_channel' | /Users/dannieltung/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport- `block in run_callbacks' | /Users/dannieltung/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/activesupport- `wrap' | /Users/dannieltung/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/actioncable- `block (3 levels) in <class:Engine>'
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.