-
Notifications
You must be signed in to change notification settings - Fork 422
Integration with Refinery CMS
parndt edited this page Jan 23, 2013
·
1 revision
Assuming you already have a Refinery-based application, and have created at least one admin user:
- Add
forem
to the Gemfile (see the README), afterrefinerycms
.
- You don't need to add
kaminari
orwill_paginate
, because Refinery already requireswill_paginate
.
-
bundle install
to get the latest version of the Forem gem. rails g forem:install
- User class:
Refinery::User
- current_user helper:
current_refinery_user
- If you get an error under
Creating default forum and topic
, it means #325 hasn't been fixed yet. You'll need to manually add this toconfig/routes.rb
, beforeRefinery::Core::Engine
:
mount Forem::Engine, :at => "/forums"
And you're done! Yaaay! Run rails s
and visit http://localhost:3000/forums
.
These instructions were tested with Refinery 2.0.8. Future people, you're on your own.
You probably put the forem
gem before refinerycms
in the Gemfile.
You probably put the Forem::Engine
routes after Refinery::Core::Engine
in config/routes.rb
.