How to add javascript action with formastic and activeadmin:
I have such form:
f.input :role, :as => :select, :collection => User.display_roles.each_with_index.map{|x,i| [x,User.roles[i]]} , :include_blank => nil
f.input :organization, :input_html => { :disabled => false }
I would like to add javascript in which after change a role, organization will change. How to do it??