bbenezech-nested_form 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ 0.0.2
2
+
3
+ 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.
4
+
5
+ 0.0.1
6
+
7
+ Initial release of the @fxposter version
8
+
1
9
  0.1.1 (April 23, 2011)
2
10
 
3
11
  * Support HTML options and block in add/remove link - issue #31
@@ -21,7 +21,7 @@ module NestedForm
21
21
  @fields ||= {}
22
22
  @template.after_nested_form(association) do
23
23
  model_object = object.class.reflect_on_association(association).klass.new
24
- output = %Q[<div id="#{association}_fields_blueprint" style="display: none">].html_safe
24
+ output = %Q[<div id="#{association}_fields_blueprint" style="display: none" class="fields_blueprint">].html_safe
25
25
  output << fields_for(association, model_object, :child_index => "new_#{association}", &@fields[association])
26
26
  output.safe_concat('</div>')
27
27
  output
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.1
4
+ version: 0.0.2
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-18 00:00:00.000000000 Z
13
+ date: 2011-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec-rails
17
- requirement: &70293943121360 !ruby/object:Gem::Requirement
17
+ requirement: &70190985459360 !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: *70293943121360
25
+ version_requirements: *70190985459360
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mocha
28
- requirement: &70293943120320 !ruby/object:Gem::Requirement
28
+ requirement: &70190985458300 !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: *70293943120320
36
+ version_requirements: *70190985458300
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