josevalim-simple_form 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/views/simple_form/notifier/contact.erb +9 -0
- metadata +2 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
<p><%=h @subject %></p>
|
2
|
+
|
3
|
+
<% @form.class.form_attributes.each do |attribute|
|
4
|
+
value = @form.send(attribute)
|
5
|
+
next if value.blank? %>
|
6
|
+
|
7
|
+
<p><b><%= @form.class.human_attribute_name(attribute) %>:</b>
|
8
|
+
<%= value.include?("\n") ? simple_format(h(value)) : h(value) %></p>
|
9
|
+
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: josevalim-simple_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- lib/simple_form/dsl.rb
|
33
33
|
- lib/simple_form/errors.rb
|
34
34
|
- lib/simple_form/notifier.rb
|
35
|
+
- views/simple_form/notifier/contact.erb
|
35
36
|
has_rdoc: true
|
36
37
|
homepage: http://github.com/josevalim/simple_form
|
37
38
|
post_install_message:
|