O
O
Ord EO2019-06-07 13:57:26
Ruby on Rails
Ord EO, 2019-06-07 13:57:26

How to make a line break in Active Admin :hint?

I use the Active Admin 2 gem.
I need to make the prompt under the input field on two lines.
The code

f.inputs("About") do
      f.input :title, hint => "first line, second line"
      f.input :label
    end

Result
5cfa42fe80ea0760043656.png
We need first line and second line to be on different lines.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alekseiev, 2019-06-07
@OrdeO

I'm not sure about 100% fidelity and correctness of this method, but you can try like this:
the class is optional if you want to keep the default style of the admin asset. You can read more about simple_format here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question