Got rid of forum class and installed devise
installed cancancan gem
added default member and posts appear on topic page
added admin to roles put posts in topic section
added delete and update functions posts on index page
updated going to index show page instead of post index
sorted out function of admin role
Added navbar
Add username attribute to User model
Add routes for users resource
Add load_and_authorize_resource
Display username instead of email
Edit abilities
Edit users controller
Show new post form only for logged in users
Scaffolded forum model
setup associations for forum
made forums index homepage
Added styling to the forum table. Show create forum button to admin only.
took out this syntax <p>posted by <%= topic.user.username %></p> from the topics index and it worked