Sha256: 3c343b5ec1d854d037ae91e4ab75c3946dd513249699678e64a355bc1a337216

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

# CmPageBuilder::Rails
This gem's purpose is to allow easy integration between the Commutatus react package cm-page-builder and any rails applications created by

## Usage
To activate this module, add `include CmPageBuilder::Rails::HasCmContent` on top of any model file that should have an associated rich text field.

## Installation


```ruby
gem 'react-rails', '~> 2.6.0'
gem 'cm_page_builder-rails'
```

And then execute:
```bash
$ bundle
```

Follow all react-rails installation instructions

Then run `rails cm_page_builder_rails:install:migrations`

In `config/routes.rb`, mount the endpoint with the line `mount CmPageBuilder::Rails::Engine => "/cm_page_builder"`

### Setting up CORS for aws
Do this or the direct upload capabilities won't work
https://keithpblog.org/post/active-storage-on-amazon-s3/

### Building the gem
`gem build cm_page_builder-rails.gemspec`
`gem push <generated gem name>`

## Contributing
Contribution directions go here.

## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cm_page_builder-rails-0.1.9 README.md