splendeo-dependent_select 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -3
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -56,10 +56,10 @@ Finally, the controller might look like this:
|
|
56
56
|
|
57
57
|
This will generate a regular +collection_select+ for the country and a +dependent_collection_select+
|
58
58
|
for province. The later will be a regular +collection_select+ followed by a js +<script>+ tag that:
|
59
|
-
|
60
|
-
|
59
|
+
* Will create an array with all the provinces. (+var array=[province1, province2...];+)
|
60
|
+
* Will place a listeners on the +country_id+ +select+ in order to update the provinces select if
|
61
61
|
the countries select is modified
|
62
|
-
|
62
|
+
* Fill up the provinces select with appropiate values.
|
63
63
|
|
64
64
|
*Note that this will not work if you haven't followed the installation procedure - see below*
|
65
65
|
|