Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 78ad046

Browse files
committed
Add unmaintained notice
1 parent 1b0689d commit 78ad046

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unmaintained
2+
3+
The Nested Form gem is **no longer maintained**. Feel free to fork this project.
4+
15
# Nested Form
26

37
[<img src="https://secure.travis-ci.org/ryanb/nested_form.png?branch=master" alt="Build Status" />](http://travis-ci.org/ryanb/nested_form)
@@ -143,7 +147,7 @@ for it. This is a bit tricky, because you have to activate datepicker after fiel
143147
```javascript
144148
$(document).on('nested:fieldAdded', function(event){
145149
// this field was just inserted into your form
146-
var field = event.field;
150+
var field = event.field;
147151
// it's a jQuery object already! Now you can find date input
148152
var dateField = field.find('.date');
149153
// and activate datepicker on it
@@ -159,7 +163,7 @@ document.observe('nested:fieldAdded', function(event){
159163
// it's already extended by Prototype
160164
var dateField = field.down('.date');
161165
dateField.datepicker();
162-
})
166+
})
163167
```
164168

165169
Second type of event (i.e. `nested:fieldAdded:tasks`) is useful then you have more than one type

0 commit comments

Comments
 (0)