The 90s are calling: they want their tables back. Unfortunately, you need them all for laying out your HTML emails...
Ruby has this handy block shortcut map(&:to_i) for map { |x| x.to_i }. However, it is limited to argument...
Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...
In an environment: config.logger = Logger.new('/dev/null')
Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...
In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...
TL;DR Append your locale keys with _html to have them marked as html_safe and translate them with = t...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...
If your rails application is unable to send mails, it might be useful to debug your settings using the rails...
For outputting a given String in HTML, you mostly want to replace line breaks with or tags.
When you have a large PG database, you may want to find out which tables are consuming the most disk...
Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...
MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...
Rails offers a way to prepend (or append) view paths for the current request. This way, you can make the...
When you have string contents (e.g. a generated binary stream, or data from a remote source) that you want to...
You need to update a lof gems. Make sure you don't have any version constraints in your...
Running rails server will start a local server that you can access via http://localhost:3000. When you are working...
Use bundler > 1.15 to fix Gem::LOADED_SPECS_MUTEX (NameError). Given the following project: ruby -v ruby 1.8.7
When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...
When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...
Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...
If your Rails application is using Webpack you need to serve assets on the same host as you application runs...