tkh_content 0.1.9 → 0.1.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ class ContactsController < ApplicationController
16
16
  if saved && sent_email == 'success'
17
17
  redirect_to root_path, notice: "Your message has been sent. Thank you very much!"
18
18
  elsif saved && sent_email == 'exception'
19
- flash[:error] = 'There was a problem sending this message'
19
+ flash[:error] = "There was a problem sending this message<br />#{e}"
20
20
  redirect_to :back
21
21
  elsif saved && sent_email == 'invalid'
22
22
  flash[:error] = 'There was a problem sending this message. Your email address does not seem to be valid!'
@@ -42,7 +42,8 @@ class ContactsController < ApplicationController
42
42
  ContactMailer.message_from_contact_form(contact).deliver
43
43
  return 'success'
44
44
  rescue Exception => e
45
- # AdminMailer.rescued_exceptions(e, "Some exception occurred while trying to send a student his confirmation for registering in a course. The email was never sent!").deliver
45
+ AdminMailer.rescued_exceptions(e, "Some exception occurred while trying to send a student his confirmation for registering in a course. The email was never sent!").deliver
46
+ @exception = e
46
47
  return 'exception'
47
48
  end
48
49
  else # for invalid or blank emails
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
 
10
10
  <div class="form-actions">
11
- <%= f.button :submit, :class => 'btn btn-primary', label: 'send your message' %>
11
+ <%= f.button :submit, 'send your message', :class => 'btn btn-primary' %>
12
12
  </div>
13
13
 
14
14
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  segments:
234
234
  - 0
235
- hash: -3307999387978065360
235
+ hash: 2060717003927025802
236
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements:
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  segments:
243
243
  - 0
244
- hash: -3307999387978065360
244
+ hash: 2060717003927025802
245
245
  requirements: []
246
246
  rubyforge_project:
247
247
  rubygems_version: 1.8.23