Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Couldn't find file 'jquery_nested_form' #1001

kidlab opened this Issue Feb 23, 2012 · 8 comments


None yet
4 participants

kidlab commented Feb 23, 2012

After installing rails_admin, and go to the admin site, I got this error:

Sprockets::FileNotFound in Rails_admin/main#index
~/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-d5001cd385fe/app/views/layouts/rails_admin/application.html.haml where line #9 raised:
couldn't find file 'jquery_nested_form'
(in /home/manvuong/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-d5001cd385fe/app/assets/javascripts/rails_admin/rails_admin.js.erb)

This error can be fixed by copying the jquery_nested_form.js from https://github.com/ryanb/nested_form/blob/master/vendor/assets/javascripts/jquery_nested_form.js to /app/assets.
However, I think we should include all necessary assets when installing rails_admin, or another convenient way to get out of this annoying.


bbenezech commented Feb 23, 2012

bundle update
rake assets:clean
rake assets:precompile


@bbenezech bbenezech closed this Feb 24, 2012


andrewculver commented Mar 7, 2012

That failed for me:

Andrews-MacBook-Pro:config andrewculver$ rake assets:precompile RAILS_ENV=development RAILS_GROUPS=assets --trace
(in /Users/andrewculver/Sites/pff)
** Invoke assets:precompile (first_time)
** Execute assets:precompile
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Invoke disable_rails_admin_initializer (first_time)
** Execute disable_rails_admin_initializer
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
couldn't find file 'jquery_nested_form'

Let me know if you'd like the full trace.


Looking at the following link - ryanb/nested_form#139 - you will find that using the master version of ryanb's nested_form gem should fix your issue.

You should use the following gem declaration in order for the above pull request to be included in your app:

gem 'nested_form', :git => "git://github.com/ryanb/nested_form.git"


bbenezech commented Mar 30, 2012

No. Stock nested_form is not compatible with RailsAdmin.

Benoit, What do you mean by "stock nested form"? I have rails_admin working with ryanb's nested form (up until feb8 version).

Does this mean you only support your own version of nested forms?


bbenezech commented Mar 30, 2012


Unfortunately, @ryanb doesn't actively maintain his version.

@fxposter's version is better, but not available as a gem (gemspec dependency...), and I couldn't have some needed patches inside.

Don't add @ryanb's nested_form to your Gemfile, you'll end up with a shitstorm of issues.

My version is 100% backward compatible with @ryanb's.

See https://github.com/bbenezech/nested_form/blob/master/CHANGELOG.rdoc

Thanks for the heads up on the shitstorm Benoit :)

I will go ahead and try your nested_form version, hopefully it will help me overcome the incompatibilities I am having with the last few rails_admin versions.

Awesome, using bbenezech-nested_form and indeed much smoother! Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment