Running tests in CI is a very important step to make sure there are no breaking changes in the new code. Today we will look at configuring Gitlab CI to run RSpec tests for Ruby on Rails applications.
Letting users to change their password is a very common feature. In this post we will be exploring the solution for raising validations error when they try to change their password but add the same old password again.
Active Job is a framework for declaring jobs and making them run on a variety of queuing backends while sidekiq is a battle tested gem that does the same thing. Rails provides an easy way to setup Active Job with Sidekiq which we will look into in this blog.
Capistrano provides a one line command deployment to remote servers. In this tutorial, we will be looking at how we can setup capistrano with our Rails application and deploy the app to remote server.
In Ruby on Rails applications with mysql2 gem, mysql2 gem always threw error when trying in the new M1 Mac. The error always said "ld: library not found for -lzstd" and "make failed".
Action mailbox can be used to forward all incoming emails to our Rails app and process them further. In this tutorial, we will be looking at the implementation and setup steps for making action mailbox work with SendGrid. We will test in development environment and also test with NGROK to make sure it will work perfectly in production.
When running the command to check the ruby version with 'ruby -v', it would take a really long time and return the error '.rbenv/shims/ruby: Argument list too long'
How do you make sure every member in your team follows best coding practices and never commits code with issues to remote repository? Answer is overcommit gem and git hooks. You can configure overcommit gem to run RuboCop on modified codes before committing those code to git
RuboCop is a static code analyzer which analyzes the code based on the best practices followed by the Ruby developers around the world and defined on the community Ruby style guide. In this article, we will learn: What is RuboCop? Why use RuboCop? and installing RuboCop in Rails.
Yes! You can create a full functioning search engine with Rails. In this tutorial you will be learning how to create a search engine with Rails by using elasticsearch. You will learn to configure elasticsearch in the rails app, create search view to search and show results and bonus feature of highlighting matched texts like Google does in it's search results.