by Andreas Katzian | Nov 29, 2021 | Code
Rake tasks within Ruby on Rails are compelling. It doesn’t matter if you need to do some maintenance, cleanup or complex data processing, rake tasks will emerge in your system as it is becoming bigger and more complex. More importantly, you certainly want to execute...
by Andreas Katzian | Aug 19, 2017 | Code
Using page specific action cable functionality within ruby on rails comes in very handy sometimes. It allows you to target given functionality to specific pages and controllers. Furthermore, it reduces the number of open web sockets, which again reduces your server...
by Andreas Katzian | Jun 21, 2016 | Code
Often you want to format your number inputs in a pretty and proper way for your users. Using Bootstrap and SimpleForm within your Rails application is a good way to start, but how will you deal with number formatting within your input field for decimal and thousands...
by Andreas Katzian | Feb 17, 2015 | Code
Sometimes you simply want to set some default values for an associated model within ActiveRecord without thinking too much of creating possible side effects when overriding methods like build_association or add model callbacks. The following example demonstrates the...