<commit_before># Thredded (the gem / rails engine)

More coming soon.

For more information see [the full-fledged rails app](https://github.com/jayroh/thredded_app)<commit_msg>[JRO] Update README<commit_after># 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 = '<EMAIL>'
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'
```

For more information see [the full-fledged rails app](https://github.com/jayroh/thredded_app)
{'fraction_non_alphanumeric': 0.1245753114382786, 'fraction_numerical': 0.0, 'mean_word_length': 5.548148148148148, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3768225', 'n_tokens_mistral': 318, 'n_tokens_neox': 300, 'n_words': 83}