Skip to content
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

Take hints by default from DB column comments? #1368

Open
winstonwolff opened this issue May 11, 2023 · 0 comments
Open

Take hints by default from DB column comments? #1368

winstonwolff opened this issue May 11, 2023 · 0 comments

Comments

@winstonwolff
Copy link

I hope Formtastic is the right place to ask this. I think it's Formtastic that has the logic which determines default labels, and input types for an ActiveRecord field. I'm however using as part of ActiveAdmin.

ActiveRecord allows one to add comments to DB columns. See https://guides.rubyonrails.org/active_record_migrations.html#column-modifiers

Is there a way for one to use those comments to populate an inputs hint option in Formtastic/ActiveAdmin forms by default? Can someone point me to a good place to start digging for where the system starts figuring out default values for 'input' labels and types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant