README.md in tramway-event-1.9.19.6 vs README.md in tramway-event-1.9.19.7
- old
+ new
@@ -3,37 +3,43 @@
## Usage
How to use my plugin.
## Installation
-Add this line to your application's Gemfile:
+#### 1. Add this line to your application's Gemfile:
+
```ruby
gem 'tramway-event'
gem 'carrierwave'
gem 'more_html_tags'
```
-And then execute:
+#### 2. And then execute:
```bash
$ bundle
```
-*Gemfile*
-```ruby
-gem 'tramway-event'
-```
-Then run:
+#### 3. Then run:
```shell
rails g tramway:event:install
rails db:migrate
```
-Then make `tramway-landing` installation. [How-to](https://github.com/ulmic/tramway-dev/blob/develop/tramway-landing/README.md#installation)
+#### 4. Then make `tramway-landing` installation. [How-to](https://github.com/ulmic/tramway-dev/blob/develop/tramway-landing/README.md#installation)
+#### 5. Add events to admin panel
+
*config/initializers/tramway.rb*
```ruby
Tramway::Admin.set_available_models ::Tramway::Event::Event, ::Tramway::Event::ParticipantFormField, ::Tramway::Event::Participant, project: #{project_which_you_used_in_the_application}
+```
+
+#### 6. Add events routes to the app
+
+*config/routes.rb*
+```ruby
+mount Tramway::Event::Engine, at: '/'
```
## Contributing
Contribution directions go here.