Ruby on rails | Create messages 1


#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.

Help~~~

i need help with the code
:grinning:


#2

Hi @methodsolver24309,

The Ruby on Rails Guides website has a helpful page on how to do this: http://guides.rubyonrails.org/routing.html.

Let me know if you still need a little help.


#3

Thank you so much.

You helped alot


#4

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