README.md in mautic-0.1.8 vs README.md in mautic-1.0.1
- old
+ new
@@ -1,20 +1,12 @@
# Mautic rails
RoR helper / wrapper for Mautic API and forms
-*Rails 4 compatible*
## Usage
### Gem provides API connection to your Mautic(s)
1. Create mautic connection
2. Authorize it
-
- In mautic you need add API oauth2 login.
- For URI callback allow:
- ```
- http://localhost:3000/mautic/connections/:ID/oauth2
- ```
- ID = is your Mautic::Connection ID
Find connection which you want to use:
```ruby
m = Mautic::Connection.last
```
@@ -64,11 +56,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'mautic', '~>0.1'
+gem 'mautic'
```
And then execute:
```bash
$ bundle
@@ -84,10 +76,9 @@
add to `config/initializers/mautic.rb`:
```ruby
Mautic.configure do |config|
# This is for oauth handshake token url. I need to know where your app listen
config.base_url = "https://my-rails-app.com"
- # OR it can be Proc
# *optional* This is your default mautic URL - used in form helper
config.mautic_url = "https://mautic.my.app"
end
```