How to add Colorpicker in Rails Active Admin?
问题 I want to implement this http://www.eyecon.ro/colorpicker/#about or any other color picker in one of the Active Admin form. Any help is appreaciated. Thanks, GS 回答1: The quickest way to get that working is simply add a class to your input using the input_html options. f.input :color, input_html: { class: 'colorpicker' } And then in active_admin.js.coffee , add in the code to turn .colorpicker input fields into color pickers. If you are going to be making a lot of them, or adding options to