Question

Am using Active Admin, In my database, the field name is big. So, I want to make an alias for the field in the display. I want something like this

f.input :incorrect_price_and_designer_1 , :alias=>"incorrect 1"

Please, let me know if anything is available.

Était-ce utile?

La solution

Thanks for your support in advance..

inc_answer.input :incorrect_price_1, :label => "Incorrect 1"

This works fine...

It might be helpful for some people

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top