Commit Graph

14 Commits

Author SHA1 Message Date
nathanvda e410388bd6 Added tests for the install generator. 2011-07-24 00:54:15 +02:00
nathanvda 1628bb19d3 Made Cocoon Rails 3.1 compatible:
- moved cocoon.js to app/assets/javascripts
- adapted install-generator accordingly (for rails 3.0.x)
- made it an engine instead of railtie (to use the asset pipeline)
2011-07-24 00:17:40 +02:00
gray 407fad5410 Add if/else brackets 2011-07-19 15:49:59 +03:00
gray 01ec1ff00b Small refactor cocoon.js 2011-07-19 12:53:04 +03:00
nathanvda 2890be2f53 Fixes #9. Make sure that the link_to_add_association also works in rails 3.0.8. by making sure the template-html is not double escaped. 2011-06-18 01:32:38 +02:00
Tangerine Cat cebcb21242 Made available call to external jQuery callbacks on add_fields click 2011-04-25 00:48:26 +02:00
nathanvda 630a88a704 Avoid HTML collisions. Inspired by the code from rfc2616. This fixes #6. 2011-04-25 00:21:13 +02:00
nathanvda bf34b7494b Added the code from rfc2616: push in plurals from ruby, with added (simple) tests 2011-04-24 14:36:50 +02:00
Andrius Chamentauskas 657e478801 Template is now saved under data-association attribute to prevent those extra blank records when submitting form. 2011-03-15 16:41:17 +02:00
David Roetzel 7e8de74176 Use hidden_field_tag instead of hidden_field.
This works around problems with
accepts_nested_attributes_for :reject_if => :all_blank.
hidden_field injects a (String!) value of "false"
into the form, effectively disabling the all_blank
check.
2011-03-04 16:36:12 +01:00
nathanvda 95f7d5237f If a block is given, no link-text needs to be given as a parameter anymore. 2011-03-03 21:15:12 +01:00
Mihai Târnovan 75c3a9bacd * added option to specify position of insertion for the add partial 2011-03-03 19:22:23 +01:00
Mihai Târnovan dc1ad12845 * added html_options and block args to link_to_remove association and link_to_add_association 2011-03-03 18:54:43 +01:00
nathanvda dc09be5634 moved from formtastic-cocoon to just cocoon 2011-02-09 22:03:53 +01:00