best_in_place
best_in_place copied to clipboard
editing an item in a jsonb column
Im trying to use this to edit fields inside a jsonb column...not even sure where to start on setting up the form I have this so far:
<%= best_in_place @character,
:data, url: user_character_path(current_user, @character),
as: :input, activator: "#exp-field",
inner_class: 'form-control' %>
But this displays as object and not sure what to put to make it reference an individual item inside the jsonb column