-
Notifications
You must be signed in to change notification settings - Fork 630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find input class EncryptedInput Error #1341
Comments
Hi, I think thats intended. Formtastic 4 understands Rails 5+ Attributes API. Formtastic 3 didn't, so it defaulted to strings. This allows you for example to define an attribute This also allows you to define a Formtastic currently does not support easy type aliases for inputs, but you can always override and adjust this method if you need to do it. formtastic/lib/formtastic/helpers/input_helper.rb Lines 254 to 301 in 60fb31e
|
Hello.
After updating formtastic from 3.1.5 to 4.0.0 I have the following error:
Unable to find input class EncryptedInput
It appears for field which is
encrypted
in ActiveRecord modelIt is fixed when I explicitly specify
form.input :field_name, label: "Field", as: :string
.As I understand, the error appears because of updated method
Formtastic::Helpers::InputHelper#column_for
which callstype_for_attribute
(instead ofcolumn_for_attribute
) after update and returnsencrypted
(instead ofstring
)P.S. Using formtastic as dependency of ActiveAdmin
The text was updated successfully, but these errors were encountered: