Project Challenge: Comments Form
Explore how to create a user comments form in Ruby on Rails using form_with. Understand handling POST requests, binding models to forms, and using nested routes to manage comment submissions within your application.
We'll cover the following...
We'll cover the following...
Problem statement
Now that you have your controller properly configured to handle comment submissions, you will need to create a form to get user comments.
For now, you need to:
- Create a form to take input from users. The input should be for the
bodyattribute of yourcommentstable. - Use
text_areainstead oftext_field