{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/41ab183eca0ab92724c08d9b48f7f17e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"41ab183eca0ab92724c08d9b48f7f17e","url":"https://api.github.com/users/smaboshe","login":"smaboshe","id":72755},"milestone":null,"labels":[],"updated_at":"2011-11-10T00:19:58Z","assignee":null,"closed_at":null,"comments":3,"url":"https://api.github.com/repos/ryanb/nested_form/issues/108","body":"Hello!\r\n\r\nThanks for a very useful gem in `nested_form`.\r\n\r\nI hope this is not too vague an issue description:\r\n\r\nI'm trying to use `nested_form` in production with a Rails 3.1.1 application. The javascript does not seem to show up after assets are precompiled. As such, dynamically inserting fields in forms does not work.\r\n\r\nI'll probably copy the necessary javascript in to lib/assets or vendor/assets to make things work temporarily.\r\n\r\nDoes the current form of the gem (in the master branch) take advantage of the Asset Pipeline? Do you have suggestions on how I can solve this issue the Rails way?\r\n\r\nThanks in advance.\r\n","html_url":"https://github.com/ryanb/nested_form/issues/108","title":"Using nested_form with the Rails 3.1.1 Asset Pipeline","number":108,"id":2053724,"created_at":"2011-10-26T06:29:12Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/89d78f30f335d112f601818cd99941a5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"89d78f30f335d112f601818cd99941a5","url":"https://api.github.com/users/ZachBeta","login":"ZachBeta","id":770645},"updated_at":"2011-11-10T00:19:58Z","url":"https://api.github.com/repos/ryanb/nested_form/issues/comments/2689769","body":"I had the same problem and solved it by...\r\n\r\n0. Adding github to my gemfile: `gem \"nested_form\", :git => 'git://github.com/ryanb/nested_form.git'`\r\n1. Moving `/public/assets/javascripts/nested_form.js` to `/vendor/assets/javascripts/nested_form.js`\r\n2. Updating `/app/assets/javascripts/application.js` to include `//= require nested_form`\r\n\r\nThen it worked.","id":2689769,"created_at":"2011-11-10T00:19:58Z"}}