README.md in the_comments-2.1.0 vs README.md in the_comments-2.2.0
- old
+ new
@@ -28,11 +28,11 @@
### 1. Gems install
**Gemfile**
```ruby
-gem "the_comments", "~> 2.0.1"
+gem "the_comments", "~> 2.1.0"
gem 'haml' # or gem 'slim'
gem 'awesome_nested_set' # or same gem
```
@@ -142,21 +142,24 @@
"published"
end
end
```
-### 5. Mount Engine routes
+### 5. Add routes
**config/routes.rb**
```ruby
MyApp::Application.routes.draw do
root 'posts#index'
resources :posts
# ...
- mount TheComments::Engine => '/', as: :comments
+ # TheComments routes
+ concern :user_comments, TheComments::UserRoutes.new
+ concern :admin_comments, TheComments::AdminRoutes.new
+ resources :comments, concerns: [:user_comments, :admin_comments]
end
```
Please, read [documentation](docs/documentation.md) to learn more