5. Create messages, Exercise 6

Please, explain me
What is it form_for? Where should I use it?

Hi @motruni4,

What is it form_for?

Exactly what it sounds like. It’s a Rails helper that creates a form for something, in this case a message.

Where should I use it?

I’m not sure; could you post a link to the exercise so I can see the instructions?

1 Like

https://www.codecademy.com/courses/learn-rails/lessons/one-model/exercises/one-model-create-messages-i?action=lesson_resume

I fixed. My mistake was that I added form to index.html.erb instead new.html.erb file

1 Like

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