Sha256: 66742be3b4bd326c0e3fa06cf9bef3cd56ff2fb25780b7cb8120bb2474133c3e
Contents?: true
Size: 978 Bytes
Versions: 2
Compression:
Stored size: 978 Bytes
Contents
# Thredded (the gem / rails engine) ## Installation Add the gem to your Gemfile: ```ruby gem 'thredded' ``` Add an initializer to your app: `config/initializers/thredded.rb` ```ruby Thredded.user_class = 'User' Thredded.email_incoming_host = 'incoming.example.com' Thredded.email_from = 'no-reply@example.com' Thredded.email_outgoing_prefix = '[Thredded] ' ``` Copy the migrations over to your parent application and migrate: ``` rake thredded:install:migrations db:migrate db:test:prepare ``` Mount the thredded engine in your routes file: ``` mount Thredded::Engine => '/forum' ``` ## Get Your App Ready There are a few things you need in your app to get things looking just right. 1. Add a to_s method to your user model. The following example assumes a column in my user model called `name`: ```ruby class User < ActiveRecord::Base def to_s name end end ``` For more information see [the full-fledged rails app](https://github.com/jayroh/thredded_app)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.0.3 | README.mkdn |
thredded-0.0.1 | README.mkdn |