Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Formtastic::UnknownInputError when displaying HStore in ActiveAdmin

How can I display textarea for editing an hstore field in ActiveAdmin?

At the moment I'm getting an error when I want to open the edit form:

Formtastic::UnknownInputError
Unable to find input class for hstore

Thanks for help

like image 507
all jazz Avatar asked Apr 03 '14 19:04

all jazz


1 Answers

This might help

  class HstoreInput < Formtastic::Inputs::TextInput

  end

Put this class to initializers or autoload path.

Other option is render it with

as: :text

option

like image 89
Fivell Avatar answered Oct 24 '22 20:10

Fivell