Gem to do the pending Migrations

we all are facing some issue with when starting the development Server with pending migration. If there are any pending migrations, there is no issue to start our development server. also We donot know any pending migrations present or not. when we take any pages, then it shows Migrations pending. sometimes it shows some variable…

Concerns to the Rescue.

Concerns are helpers that are used  to slim down the codes in models and the controllers. Primary logic to implement are fatty models and skinny controllers. According to the rubocop guidelines, the possible LOC allowed in a file is 100 to 120 in a file. we can create model concerns, controller concerns. in order to…

Find Test Coverage Locally.

Hi All, the gem called ‘simple_cov’ made this possible. To find the test coverage locally. setup your test enviroment for this https://github.com/colszowka/simplecov steps: update the gemfile add gem ‘simplecov’ to the group test in gemfile. update the spec_helper or rails_helper add below line to the top of the helper file require ‘simplecov’ also update the…

The Power Of Ajax in Rails

Ajax stands for Asynchronous JavaScript and XML.  Before we start with Ajax in detail, let me explain how web page load to our system in normal way. when we type localhost:3000/ If the  default root path is set then it will check in routes file; it fetches all the files will be needed for showing…