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 load.
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 separators?
Got a bad rating on your website site speed (e.g. from Google PageSpeed Insights)? Did you observe the advise “Properly formatting and compressing images can save many bytes of data”? Don’t panic, here you’ll find a handy solution to optimize your png files on your mac.
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 easiest way so far to achieve the desired functionality.
Whether you want to create a new HealthKit-enabled app or update your existing fitness or health app, this tutorial shows you how to easily integrate the new HealthKit API. This allows you to use all benefits of the iOS Health app, including storing your health and fitness data as well as reading health and fitness data of other apps.