contact_us 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +28 -3
- data/app/controllers/contact_us/contacts_controller.rb +2 -2
- data/config/locales/contact_us.en.yml +3 -0
- data/contact_us.gemspec +1 -1
- data/lib/contact_us/version.rb +1 -1
- metadata +4 -25
data/README.md
CHANGED
@@ -10,11 +10,11 @@ Contact Us requires the Formtastic Gem. Read more about Formtastic @ https://gi
|
|
10
10
|
|
11
11
|
In your `Gemfile`, add the following dependencies:
|
12
12
|
|
13
|
-
gem 'contact_us', '~> 0.0.
|
13
|
+
gem 'contact_us', '~> 0.0.7'
|
14
14
|
|
15
15
|
From `Rails.root` run:
|
16
16
|
|
17
|
-
$ bundle
|
17
|
+
$ bundle
|
18
18
|
$ rake contact_us:install
|
19
19
|
|
20
20
|
In `config/initializers/contact_us.rb` modify:
|
@@ -31,8 +31,33 @@ The generator copies the view files to `app/views/contact_us`, and you can custo
|
|
31
31
|
|
32
32
|
You may also update your locales under `config/locales/contact_us.en.yml` or create your own. Please feel free to submit your own locales so that other users will hopefully find this gem more useful.
|
33
33
|
|
34
|
+
## USAGE
|
35
|
+
|
36
|
+
Visit your website and navigate to `/contact_us` to see the form in action.
|
37
|
+
|
38
|
+
## ISSUES
|
39
|
+
|
40
|
+
Please report any bugs or feature requests to the Github issues page @ https://github.com/jdutil/contact_us/issues
|
41
|
+
|
42
|
+
## CONTRIBUTING
|
43
|
+
|
44
|
+
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.
|
45
|
+
|
46
|
+
Here are some ways *you* can contribute:
|
47
|
+
|
48
|
+
* by using prerelease versions
|
49
|
+
* by reporting bugs
|
50
|
+
* by suggesting new features
|
51
|
+
* by [translating to a new language](https://github.com/jdutil/contact_us/tree/master/config/locales)
|
52
|
+
* by writing or editing documentation
|
53
|
+
* by writing specifications
|
54
|
+
* by writing code (**no patch is too small**: fix typos, add comments, clean up inconsistent whitespace)
|
55
|
+
* by refactoring code
|
56
|
+
* by resolving [issues](https://github.com/jdutil/contact_us/issues)
|
57
|
+
* by reviewing patches
|
58
|
+
|
34
59
|
## TODO
|
35
60
|
|
36
61
|
* 100% test coverage
|
37
62
|
|
38
|
-
Copyright (c) 2011 Jeff Dutil, released under the MIT license.
|
63
|
+
Copyright (c) 2011 Jeff Dutil, released under the [MIT license](https://github.com/jdutil/contact_us/tree/master/MIT-LICENSE).
|
@@ -8,9 +8,9 @@ class ContactUs::ContactsController < ApplicationController
|
|
8
8
|
@contact = ContactUs::Contact.new(params[:contact_us_contact])
|
9
9
|
|
10
10
|
if @contact.save
|
11
|
-
redirect_to('/', :notice =>
|
11
|
+
redirect_to('/', :notice => t('contact_us.notices.success'))
|
12
12
|
else
|
13
|
-
flash[:error] =
|
13
|
+
flash[:error] = t('contact_us.notices.error')
|
14
14
|
render :new
|
15
15
|
end
|
16
16
|
end
|
data/contact_us.gemspec
CHANGED
data/lib/contact_us/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact_us
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 19
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 6
|
10
|
-
version: 0.0.6
|
5
|
+
version: 0.0.7
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Jeff Dutil
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-09 00:00:00 -04:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 31
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 2
|
33
|
-
- 0
|
34
24
|
version: 1.2.0
|
35
25
|
type: :runtime
|
36
26
|
version_requirements: *id001
|
@@ -40,13 +30,8 @@ dependencies:
|
|
40
30
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
31
|
none: false
|
42
32
|
requirements:
|
43
|
-
- -
|
33
|
+
- - ">="
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 7
|
46
|
-
segments:
|
47
|
-
- 3
|
48
|
-
- 0
|
49
|
-
- 0
|
50
35
|
version: 3.0.0
|
51
36
|
type: :runtime
|
52
37
|
version_requirements: *id002
|
@@ -94,23 +79,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
79
|
requirements:
|
95
80
|
- - ">="
|
96
81
|
- !ruby/object:Gem::Version
|
97
|
-
hash: 3
|
98
|
-
segments:
|
99
|
-
- 0
|
100
82
|
version: "0"
|
101
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
84
|
none: false
|
103
85
|
requirements:
|
104
86
|
- - ">="
|
105
87
|
- !ruby/object:Gem::Version
|
106
|
-
hash: 3
|
107
|
-
segments:
|
108
|
-
- 0
|
109
88
|
version: "0"
|
110
89
|
requirements: []
|
111
90
|
|
112
91
|
rubyforge_project: contact_us
|
113
|
-
rubygems_version: 1.5.
|
92
|
+
rubygems_version: 1.5.2
|
114
93
|
signing_key:
|
115
94
|
specification_version: 3
|
116
95
|
summary: Gem providing simple Contact Us functionality with a Rails 3 Engine.
|