Notes on MongoDB
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...
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...
Lambdas and Proc Lambdas and Proc are block executing statement. Lambdas and Proc both are object of Proc. Lambdas and Proc are executed by call(). Lambda declaration x = lambda { p "This is l...
Engines are small applications which provides functionality to their host applications. A Rails application is a engine with Rails::Application class inheriting a lot of behaviour from Rails::Engin...
Pow is zero-config Rack server for Mac OS X. Your application will run on myapp.test without modifying /etc/hosts. Those who use GNU/Linux and installed Ruby and Rack gem Prax is usefull. It is a w...