A couple of things I want to talk about, learnt or loved.
Here we go for a quick tailwind css setup, with rails and turbolinks.
Sometimes datas are on a a CSV and you have to store those datas in your DB. My first intuition, (which is rarely the most performant) to populate the DB would be to: open, read and an create objects with a Model.find_or_create_by. Something like this :
Last week during the project week at Le Wagon Lyon I discovered a new tip I wanted to share. The idea was to match 2 strings, the first with special characters, the second without. It is a problem I already encounter with the french language and our “é, è, ô, ê, à, â…”. For example when you scrap things from the web and try to match them with your DB.