Getting Formtastic :: UnknownInputError when displaying HStore in ActiveAdmin

How to display a text field for editing the hstore field in ActiveAdmin?

I am currently receiving an error message when I want to open the edit form:

Formtastic::UnknownInputError Unable to find input class for hstore 

thanks for the help

+6
source share
1 answer

This can help

  class HstoreInput < Formtastic::Inputs::TextInput end 

Put this class in initializers or startup path.

Another option is to do it with

as: :text

options

+8
source

All Articles