You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few things where broken in Rails admin (multiselect for associations, for example), and after opening the browser's console, there was this error:
Cannot read property 'push' of undefined RailsAdmin is not defined
After doing some quick research, it turns out that since Rails Admin uses jQuery 3, this error appeared.
I had to copy all of the gem's javascript folder to my app's assets, and change: //= require 'jquery'
to:
//= require 'jquery2'
in rails_admin.js.
It's definitely not a good solution, but the only one I've found so far. I can't imagine being the only one with this issue. Has this been addressed somewhere else ? I couldn't find anything related yet.
The text was updated successfully, but these errors were encountered:
Thanks @jklimke , but I'm trying to find a solution without adding quick fixes or snippets of code which would much likely break with upcoming releases. Reverting to jQuery 2 doesn't break anything. See: #2839
A few things where broken in Rails admin (multiselect for associations, for example), and after opening the browser's console, there was this error:
Cannot read property 'push' of undefined
RailsAdmin is not defined
After doing some quick research, it turns out that since Rails Admin uses jQuery 3, this error appeared.
I had to copy all of the gem's javascript folder to my app's assets, and change:
//= require 'jquery'
to:
//= require 'jquery2'
in
rails_admin.js
.It's definitely not a good solution, but the only one I've found so far. I can't imagine being the only one with this issue. Has this been addressed somewhere else ? I couldn't find anything related yet.
The text was updated successfully, but these errors were encountered: