noodall-form-builder 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,8 @@ module Noodall
14
14
  before_save :check_for_spam
15
15
  attr_protected :approved
16
16
 
17
+ timestamps!
18
+
17
19
  belongs_to :form, :class => Noodall::Form, :foreign_key => 'noodall_form_id'
18
20
 
19
21
  def required_fields
@@ -22,7 +22,7 @@
22
22
  <td class="edit"><%= link_to h(form.title), noodall_admin_form_path(form), :class => 'edit', :title => "Edit #{form.title}" %></td>
23
23
  <td><%= form.email %></td>
24
24
  <td class="child">
25
- <%= link_to pluralize(form.responses.size, "Response"), noodall_admin_form_form_responses_path(form), :title => "View responses for #{h(form.title)}", :class => 'child-no' %> <%= link_to 'Download Responses', noodall_admin_form_form_responses_path(form, :csv), :class => 'download', :title => 'Download the responses for this form in CSV format' %></td>
25
+ <%= link_to pluralize(form.responses.count, "Response"), noodall_admin_form_form_responses_path(form), :title => "View responses for #{h(form.title)}", :class => 'child-no' %> <%= link_to 'Download Responses', noodall_admin_form_form_responses_path(form, :csv), :class => 'download', :title => 'Download the responses for this form in CSV format' %></td>
26
26
  <td><%= link_to 'Delete', noodall_admin_form_path(form), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this form' %></td>
27
27
  </tr>
28
28
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module FormBuilder
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-form-builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors: []
13
13