A message board application where people can contribute to various topics.
At each step, the application must be deployed on Heroku
Anyone can post a message. A new message requires the following fields
- subject
- message
- author
No field can be left empty.
Hints: Scaffolding and validation.
Anyone can comment on a message. To place a comment the following fields are required
- comment
- author
Question: What is the relationship between a message and comment.
Hint: Active Record Associations
Each time a new thread is created, the URL must be pretty:
If I create a new thread with the subject of 'World Wide Web' I expect the URL to look like:
/messages/world-wide-web
The subject has being slugged. The slug should be stored in the same row as the message itself.
Ensure that if I create another message with same subject, a different slug is create.
Hint: Unique validation rule