Ruby on rails | Create messages 1


So far we’ve been loading messages from the database and displaying them in the view. How can we create new messages and save them to the database? Looking at the seven standard Rails actions, we need to use the new and create actions. Let’s set them up now.

In the routes file, create a route that maps requests to messages/new to the Message controller’s new action.


i need help with the code


Hi @methodsolver24309,

The Ruby on Rails Guides website has a helpful page on how to do this:

Let me know if you still need a little help.


Thank you so much.

You helped alot


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.