What Happens When You Upgrade Rails 5.0 to 5.2 and Ruby 2.4.3 to 2.5.3

What Happens When You Upgrade Rails 5.0 to 5.2 and Ruby 2.4.3 to 2.5.3
4 days ago Rails v6.0.0.rc1 was released. This means new version will be released in a few weeks, this is important, because new version includes some performance improvements and the performance is everything for apps. In the beginning of this year (2019) I’ve started to work on legacy rails app that is version v5.0 and ...

Heroku /Sidekiq error when kill/retry job – 403 Forbidden on Heroku

Hi everyone, I’ve faced this problem on heroku when i deployed Ruby on Rails web app to free dyno Solution for custom domains is like below; You need to force ssl your rails app in config file. Because heroku app use default https scheme for app url. If you do not force it, it will ...

Custom field example for Ruby on Rails with Activerecord & PostgreSQL & Metaprogramming

Hi, Sometimes instead of specific db fields, you want to store custom field on database that is changing according to user needs in same app. I coded following method to store this type of dynamic data. As you see in codes, it uses metaprogramming methods. Also, there is simple validation to custom field that is ...

Deploy Ruby On Rails Application Swiftly With Capistrano

Deploy Ruby On Rails Application Swiftly With Capistrano
Hi everybody, In this post, I will talk about the  Capistrano  deploy tool on Ruby On Rails and I will share some code blocks that is a bash script for to start the server from zero level. I am using Ubuntu-14.04 server. Capistrano version is 3.4. Ruby version on my server is 2.2.3. Capistrano is ...