Подходит для апноэ, но это не очень помогает новому парню.
Это только для ruby на рельсах 3.1 и, вероятно, для 3.2, но я не проверял его.
Если вы добавите следующее в ваш файл Application_root/app/assets/javascripts/application.js
(я добавил его в последнийстрока):
//= require jquery_nested_form
свежий выглядит следующим образом
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
//= require jquery_nested_form
Или, если по какой-то причине вы используете прототип:
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .
//= require prototype_nested_form