bbenezech-nested_form 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ 0.0.3
2
+
3
+ Added id (generated from name) to top-level wrapper for cleaner JS manipulation
4
+
1
5
  0.0.2
2
6
 
3
7
  Added a class on blueprint div so that it is possible for javascript to know if a form field is part of a blueprint or for real in the form.
@@ -57,10 +57,7 @@ module NestedForm
57
57
  end
58
58
 
59
59
  def fields_for_nested_model(name, object, options, block)
60
- output = '<div class="fields">'.html_safe
61
- output << super
62
- output.safe_concat('</div>')
63
- output
60
+ %{<div class="fields" id="nested_object_#{name.to_s.gsub(/\[|\]/, '_')}">#{super}</div>}.html_safe
64
61
  end
65
62
  end
66
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbenezech-nested_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-11-22 00:00:00.000000000 Z
13
+ date: 2012-02-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec-rails
17
- requirement: &70190985459360 !ruby/object:Gem::Requirement
17
+ requirement: &70185571726600 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.6.0
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70190985459360
25
+ version_requirements: *70185571726600
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mocha
28
- requirement: &70190985458300 !ruby/object:Gem::Requirement
28
+ requirement: &70185571725940 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70190985458300
36
+ version_requirements: *70185571725940
37
37
  description: Gem to conveniently handle multiple models in a single form with Rails
38
38
  3 and jQuery or Prototype. Version maintained by fxposter.
39
39
  email: ryan@railscasts.com