how to change class of a label for checkboxes in simple_form

I wanted to give an update to this answer in case someone comes here looking for a way to do this as I did. You can give the label a class with this option :item_wrapper_class => ‘class_goes_here’ Here is a full example: = user.input :resident, :collection => [[“In the U.S”, true],[“Outside the U.S.”, false]], :label_method … Read more

How to display only the value in edit page in Active Admin

As Alex said, set to disabled. You could then use css to get the visual you wanted, if you can live with the semantics of that. The syntax was slightly different for me to get this to work. in your admin form: f.input :finish_position, input_html: { disabled: true } in your CSS active_admin.css input[disabled=”disabled”], input[disabled] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)