-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathREADME
55 lines (40 loc) · 1.6 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SpreeContactUs
=========
Requirements:
1) recaptcha (optional)
2) rails >= 3.1.0
Installation
=======
Add-to Gemfile following lines:
gem 'spree_contact_us', :git => 'git://github.com/greendog/spree_contact_us.git'
gem "recaptcha", :require => "recaptcha/rails" # if you are using reCAPTCHA
Run: bundle install
Run: bundle exec rails g spree_contact_us:install
Run: bundle exec rake db:migrate
* Set mail method in admin area (/admin/mail_methods). Otherwise will not work!
Upgrading
=======
Run: bundle exec rails g spree_contact_us:install
Run: bundle exec rake db:migrate
Contact forms get spammed a lot
=======
Includes support for reCAPTCHA http://www.google.com/recaptcha which can be
configured in the admin under Configuration -> Inquiries.
A "Honeypot" CAPTCHA is also available. This is a fairly effective method and
requires zero effort on the part of the user. An empty form field is included
in the form - if it has anything in it, a stupid bot has probably filled it
out. It does assume that everyone is using a CSS-capable, visual user agent
that will hide the field using display:none
Extra Browser/Client info
=========================
For helping with reports of site issues, the controller also gathers the UA
string and remote IP. Viewport size is also recorded when the form is
submitted via JS - if you want this, make sure
//= require store/spree_contact_us
is in your JS manifest file (usually /app/assets/javascripts/store/all.js)
TESTING
=======
$ bundle exec rake common:test_app
$ bundle exec rake spec
~Enjoy~
Pull requests welcome. Please make sure changes are tested and tests pass.