bamboolab_contact_form 0.0.9 → 0.0.10
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.
- checksums.yaml +4 -4
- data/lib/create_notice.rb +9 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ad3ee01c113a954fd554b3e567a7ce0b67c9fd
|
4
|
+
data.tar.gz: 8785243ea4bbcdf379cd8cb258f10231ce13c533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc18444e8db00ac3b98337e4955e8b815757dea4119e19f4b836e03789126b0a4beaa0700ba7a10ac427a9db614f8523f94e7401f696d8bb56fc8436dc5328db
|
7
|
+
data.tar.gz: 9decd7bc7d38da8ea21596e151c583d933b9677102c884950856a1b735ce93a3b82c0a216e5ee727af471e1980a3a3988a93bc20dde9b285d1c1abed7f395b8b
|
data/lib/create_notice.rb
CHANGED
@@ -1,32 +1,24 @@
|
|
1
1
|
def create_notice(name, fields, mailer)
|
2
|
-
puts "
|
3
|
-
puts "
|
2
|
+
puts "*******************************************************************************************************"
|
3
|
+
puts "---------------------------"
|
4
4
|
puts "| BAMBOOLAB CONTACT FORM |"
|
5
|
-
puts "| |"
|
6
5
|
puts "---------------------------"
|
7
6
|
puts ""
|
8
|
-
puts "
|
9
|
-
puts "
|
10
|
-
puts "----------------------------------------------------------------------------------------------------"
|
7
|
+
puts ""
|
8
|
+
puts "=> Add helper to controller where you want to use the form:"
|
11
9
|
puts " include #{name.capitalize}sHelper"
|
12
10
|
puts " before_action :message_prepare_var"
|
13
11
|
puts ""
|
14
12
|
|
15
|
-
puts "
|
16
|
-
puts "/ Add this line to your config/routes file: /"
|
17
|
-
puts "----------------------------------------------------------------------------------------------------"
|
13
|
+
puts "=> Add this line to your config/routes file:"
|
18
14
|
puts " post 'send_#{name}', to: '#{name}s#send_#{name}'"
|
19
15
|
puts ""
|
20
16
|
|
21
|
-
puts "
|
22
|
-
puts "/ Add this line to your views: /"
|
23
|
-
puts "----------------------------------------------------------------------------------------------------"
|
17
|
+
puts "=> Add this line to your views: "
|
24
18
|
puts " <%= render '#{name}s/form' %>"
|
25
19
|
puts ""
|
26
20
|
|
27
|
-
puts "
|
28
|
-
puts "/ Add this code to you config/environments/development.rb and /production.rb with the right :host : /"
|
29
|
-
puts "----------------------------------------------------------------------------------------------------"
|
21
|
+
puts "=> Add this code to you config/environments/development.rb and /production.rb with the right :host :"
|
30
22
|
puts " config.action_mailer.raise_delivery_errors = false"
|
31
23
|
puts " config.action_mailer.default_url_options = { :host => 'youthost.dev.bambooapp.eu' }"
|
32
24
|
puts " config.action_mailer.delivery_method = :smtp"
|
@@ -42,7 +34,6 @@ def create_notice(name, fields, mailer)
|
|
42
34
|
puts " }"
|
43
35
|
puts ""
|
44
36
|
|
45
|
-
puts "
|
46
|
-
puts "
|
47
|
-
puts "----------------------------------------------------------------------------------------------------"
|
37
|
+
puts "=> And add your personal sendgrid information to config/environment.rb !"
|
38
|
+
puts "*******************************************************************************************************"
|
48
39
|
end
|