readme.md in refinerycms-contacts-0.1.2 vs readme.md in refinerycms-contacts-0.2.0
- old
+ new
@@ -4,11 +4,11 @@
Attach contact form to any page with contact information
## Requirements
-This version supports Rails 3.2.x and Refinery CMS ~> 2.0.9. (Should work with ~> 2.0.0, not tested)
+This version supports Rails 4.2.x and Refinery CMS ~> 3.0.0.
## Features
* create contact, contact has many email address
* contact can be attached to many pages
@@ -36,11 +36,11 @@
### Gem + migrations
Open up your ``Gemfile`` and add at the bottom this line:
```ruby
-gem 'refinerycms-contacts', '~> 0.1.0'
+gem 'refinerycms-contacts', '~> 0.2.0'
```
Now, run
```ruby
@@ -63,10 +63,22 @@
```ruby
rake db:seed
```
+Override PagesContoller to get strong params work
+
+```ruby
+rake refinery:override controller=admin/pages_controller
+```
+
+Open that file, find function permitted_page_params and append
+
+```ruby
+contact_page: [:contact_id,:contact_info]
+```
+
### Assets + views
If you don't have Chosen JS included in your backend yet, append this code to your_app/config/initializers/refinery/core.rb
```ruby
@@ -150,11 +162,10 @@
```
## Todo list
* add js pop-up in page's tab to allow create contact "in-place" instead of clicking through menu
-* tests :(
## Code
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/Matho/refinerycms-contacts)
@@ -162,10 +173,13 @@
* WymEditor tab name don't show title in correct current_locale
* reCaptcha validation shows errors both for incorrect-captcha-sol and verification_failed key
## Testing
-TODO
+* cd to this engine path
+* bundle install
+* rake refinery:testing:dummy_app
+* rake spec
## License
Refinery CMS Contacts engine is released under the MIT license. Created by Martin Markech
\ No newline at end of file