jq is useful to slice, filter, map and transform structured json data.
brew install jq
| -- export family trees | |
| -- by Putnam https://gist.github.com/Putnam3145/34f7046481256cc4709d | |
| --[====[ | |
| family | |
| ====== | |
| TODO | |
| family -exportToCSV -this -heritage | |
| family -exportToFamilyScript -this -heritage | |
| ]====] |
| <%= form_with model: citizen, class: "card flex flex-col gap", data: { controller: "form" } do |form| %> | |
| <div class="flex flex-col gap mb-2"> | |
| <div class="flex flex-col gap-half"> | |
| <% countries = Country.order(:name) %> | |
| <%= label_tag :country_id, "Country", class: "text-sm font-medium leading-none" %> | |
| <%= select_tag :country_id, options_from_collection_for_select(countries, :id, :name, citizen.country_id), include_blank: "Select one", class: "input", data: { action: "form#submit", form_submitter_param: "on_country_change" } %> | |
| </div> | |
| <div class="flex flex-col gap-half"> | |
| <% states = State.where(country_id: citizen.country_id).order(:name) %> |