A basic tutorial about how to handle web forms with Ruby-on-Rails.
You are probably familiar with the "if/else" control flow but there are certain situations where there may be a visually better way to write these statements.
Webpacker is a wrapper around Webpack, but is not fully used in a default new Rails application. Let's see how to set up Rails with Webpacker, in order to use any kind of frontend assets.
A tiny article to explain the daily workflow when working with Rails and Bootstrap
The "switch" statement in Ruby is actually made by a case/when statement. Let's see how.
In the Ruby-on-Rails word, they are known as templating languages. Let's compare each other and pick a winner.
Private methods exist for a reason. However they can lead to tricky situations. Here is a quick hack about private methods in Ruby.
Let's imagine what Rails 7 could be.
Customise Bootstrap with Rails is not very complicated : Bootstrap v5 opened wide the doors (and variables file) to make it easy.
Webpacker and Sprockets both try to manage the frontend assets of Ruby-on-Rails applications. They are both integrated inside default Rails applications. But they're doing the same job actually, so after 4 years of using both, it's time to choose.
More often than not, you have to check if an object is empty. But what does "empty" means exactly ?
Tailwind and Bootstrap are the most used CSS framework by now. Let's see how they compare - with the bias of a Ruby-on-Rails developer point of view.
Posted March 26, 2021 ‐ 4 min read
Rails is a full-stack web framework, based on Ruby. If you want to learn Rails and you already have some coding experience, here are my opinions. As any opinion, it can be widely discussed :)
Posted March 22, 2021 ‐ 8 min read
This article is about "how to unit test a rails controller". I'm showing an attempt to do so, and why I finally stick to "the Rails way".
In this article, we will see how to create a new Rails application, with all available options. There's also a fantastic --minimal option.
ActiveSupport is one of the components of Ruby on Rails. As its name suggest, it "supports" applications by providing many utilities like encrypting, querying data, callbacks, security utilities, and a lot more.
I have never followed the "no-jquery" hype. But let's face it, even the giants are removing jQuery from their stack. Rails 6 now works without jQuery. Bootstrap 5 now works without jQuery. Maybe it's time to reconsider.
A short tutorial. Learn how to integrate last Bootstrap 5 version into Ruby-on-Rails. Using webpack(er).