Let’s Build: With Ruby on Rails – Discussion Forum
Continuing my long stent of Ruby on Rails builds is yet another build which focuses more on relationships in a real-world discussion forum application.
The application on the outside looks a little bleak but I promise there is a lot going on under the hood of which you could extend to be something very feature rich.
Follow along with more videos below and be sure to download the source code to both explore the application and refer to it as you build alongside me.Download Source Code
The Goals of the application
To create a discussion forum with appropriate channels. Every discussion will belong to a channel and an author. The author can manage their own discussion by editing or deleting it at any time once logged in. If a user has admin privileges they can manage any user’s discussions and replies. Any discussion can have many replies which is what makes forums so great for a community based application.
Some key features of this application include:
- Markdown support and syntax highlighting for code snippets
- Admin user roles
- Prettier URLS
- Ajax replies ( load automatically on submit rather than a full page refresh )
We’ll be making use of some gems we have in the past as well as some new ones to lend us a hand with the feature list above. At the time of writing and publish the Gemfile for this project resembles the following:
Below are the remaining parts of the screencast series. I invite you to follow along and actually type out the code to the best of your ability along with me. As always you should refer to the Github repo if you ever get stuck or need some code to copy in the process.