Tutorial: Create a simple messaging system on Rails
Dana Mulder

Hi Dana, Thanks for this tutorial!

I was wondering how I can create a new message from the rails console?

I am trying the below but it errors that conversation must exist.

Message.create!(body: “Message One”, conversations_id: 1, user_id: 5)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.