Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Active Admin Batch Dropdown Disabled Uncaught ReferenceError: options is not defined

I am using the stable release 0.6.0 of Active Admin and rails 3.2.17. I am trying to get batch actions running, but I get this error in general when using active admin:

Uncaught ReferenceError: options is not defined 

active_admin.js:407 Uncaught ReferenceError: options is not defined

So the dropdown of batch actions will stay disabled.

My active_admin.js file looks like this:

//= require active_admin/base

If anyone knows why this isn't working I am really thankful!

like image 350
zer02 Avatar asked Nov 10 '22 01:11

zer02


1 Answers

This is a known bug of ActiveAdmin you can choose 1 those options to fix it:

  1. update your Gemfile to get the fix:

    gem 'activeadmin', '~> 0.6.6' 
    
  2. the second option is to override the CoffeeScript function with the changes in this commit https://github.com/activeadmin/activeadmin/pull/3776/files
like image 92
matanco Avatar answered Nov 14 '22 22:11

matanco