Rob Sturcke


7,780 Experience
58 Lessons Completed
2 Questions Solved


Thanks so much!

Ran into this error in part 4 of the ActionCable group chat. What exactly am I missing? Schema looks fine same with MessagesController.

ActionController::UnknownFormat in MessagesController#create
MessagesController#create is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: []
raise ActionController::UnknownFormat, message

What am I missing?

Never mind! Missed adding user:reference when scrubbing back in the video!

Having some trouble figuring out what I'm missing with submitting a message in the chatroom, I get the error for my messages_controller.rb saying that can't write unknown attribute `user_id. However checking the source files I saw that my messages_controller.rb was the exact same as the example under my create saying message.user = current_user is incorrect:

Error encountered at about 13min into tutorial.

  def create
    message =
    message.user = current_user
    redirect_to @chatroom

GoRails Screencast code from part 3:

My Code:

Running ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin16], Rails

Thanks for your help,


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

© 2020 GoRails, LLC. All rights reserved.