Search⌘ K

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.

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:

  1. Create a form to take input from users. The input should be for the body attribute of your comments table.
  2. Use text_area instead of text_field
...