mardi 28 septembre 2021

Storext custom fields dinamically

i have this store_attributes using Storext.model in my column jsonb data

store_attributes :data do
  name String
  user String
  password String
  type String
end

i don't need the last field type for my custom fields but i need for use class. some tip?

i'm calling like this in view

stored_attributes[:data].each do |accessor|
= f.input accessor

but i don't need type field

Aucun commentaire:

Enregistrer un commentaire