JQuery
Introduction jQuery is a JavaScript library created by John Resig in 2006 with an objectives Write less, do more. The main features of jQuery are event handling, Ajax interactions, animations, tra...
Introduction jQuery is a JavaScript library created by John Resig in 2006 with an objectives Write less, do more. The main features of jQuery are event handling, Ajax interactions, animations, tra...
Metaprogramming in Ruby Metaprogramming is a programming concept which treats other programs as their data and computer programs are written in such a way that is executed at runtime instead of co...
Setup Rails 5 with mongoid gem At first we need to install MongoDB in our system, the steps to install MongoDB is descripted in my previous blog. Confirm mongoDB is installed by browsing http://lo...
Introduction to MongoDB MongoDB is a open source document-oriented NoSQL database used for high volume data storage. If database is not already created switch to the database and insert data into...
Install MongoDB Community Edition on Unbuntu 18.04 (Bionic) Import the MongoDB public GPG Key from https://www.mongodb.org/static/pgp/server-4.2.asc wget -qO - https://www.mongodb.org/static/pgp/s...
Polymorphism in Ruby The term polymorphism means having many forms. In Ruby, polymorphism is carried out by using Inheritance. Polymorphism is achieved by using method overriding. class Animal ...
Inheritance in Ruby Inheritance is the feature of OOP in which characteristics & behaviours of one class inherits into another class. The class which is inheriting behaviour is called subclass...
Notes on various features and functions of Active Record Model Query Methods obj = User .where(email: 'info@mydomain.np') .where('id = 2') .where('id = ?', 2) .order(:tag_line) .order(t...
How to change all commits to have the same newly added author and committer? Go to appropriate branch and project directory and run the following command on console. git filter-branch -f --env-...
Senerio: User may not provide Name when creating profile, so user name is not compulsory But if Name is provided then minimum character should be 3 & max character should be 10 Solutions...