I built a data table named news, which contains three fields: title, editors and content. Then I built a new news. I filled in the contents and submitted them. The background captured the contents corresponding to the three fields, but they were not stored in the database.
1. Front-end form
This is the controller of news.
3. Captured but not stored in the database
4. The database is empty
Please help me see why, thank you!
There is something wrong with what create wrote
@new = New.new(params[:new])