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…

Api only App –Rails–5 Hurray….

Rails5 Rc1 released. Here I will show to implement a simple app using the  rails 5 . install 2.2.2+ or 2.3.0 ruby if you have rvm . then using the following command. rvm install 2.3.0   Install Rails 5 gem install rails –pre Create Api only APP: by using the command rails new rails_5_user_api –api…

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 Heroku Magic!!!!

Heroku is a cloud Platform-as-a-Service (PaaS) supporting several programming languages. Heroku was acquired by Salesforce.com in 2010.[1] Heroku, one of the first cloud platforms[citation needed], has been in development since June 2007, when it supported only the Ruby programming language, but has since added support for Java, Node.js, Scala, Clojure, Python, PHP, and Go.    source…

Git Rebasing in No harms Way =D

Git is a useful tool for Version control. Git Rebasing is used when we have a scenario like we are working in  a feature branch and   not taken the pull within the last 3 days . Also the remote has 3 more commits we don’t have in our feature branch. Also the Feature branch has…

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…

Adding SSH to GitHub Account

Hi all, GitHub provides a mechanism to add an SSH keys to account . So we dont need to type email id and password each time when we push our code to GitHub. What we need to do ?? 1.check for any SSH key in system. 2. create a new SSH key id not 3….

A story of Git

Git is open source and distributed version control management system designed to handle simple and advanced projects speed efficiency easy to learn why version control? simply version control is able to track each changes to a file during a project life time. there are many ways to understand the version control. for simplicity we only…

A simple Tutorial On JQuery

JQuery is JavaScript library used to implement features of JavaScript with lesser amount of JavaScript code.Basically J Query is like a mystery box which contains all features of JavaScript. Why JQuery ??? It is simple and more advanced Does not need complex logic to achieve a task.  Rely on JavaScript. Simplifies a lot of codes…