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...
Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...
If freshclam updates are failing even though the update servers are available and you find error messages like the following...
Lets say we have a user with a contract whereas contract is a mounted carrierwave file. Now we want to...
This might be a known issue with Rubygems 2.5.1. This will help: gem update --system
The attached article explains options you have to store the order of items in a database table. The simplest solution...
Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...
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...