Ruby, map with index
Intro Just like many other programming languages, the Map method is also in ruby. You use a ruby map or map, in general, to transform the data and perform functions on each element of the object. ...
Intro Just like many other programming languages, the Map method is also in ruby. You use a ruby map or map, in general, to transform the data and perform functions on each element of the object. ...
0. Motivation We are building BootrAils on top of the last Rails version. When Rails 7 came out, it was (kind of) a relief to see a replacement for Webpacker. Whereas the new assets pipeline looks...
strftime for the impatients Sometimes examples worth a thousand words, so here are some that could help you right away (example inspired from APIDoks) : d = DateTime.new(2021,11,19,8,37,48,"-06:0...
0. Motivation At BootrAils, until recently, we were uncomfortable about what could be a decent default authentication in any new Rails app - until Rodauth appeared under the radar. There are no ...
0. A big warning At BootrAils, we are very excited that Rails 7 is out since mid-december, 2021. The frontend assets management is once again completely different. Rails 6 almost dropped Sprockets...
Introduction Let’s say you have a table named “books”, and an associated model named “Book”. You want to add the column “author”. Tools used in this tutorial : Rails 6.1.3, Ruby 3 Note that thi...