Ram Laxman Yadav bio photo

Ram Laxman Yadav

Ruby on Rails Developer

Email Twitter LinkedIn Github Stackoverflow

All Posts

2017

2016

Bidirectional Destroys in Rails 5

Suppose you have two models having has_many/belongs_to associations between them, In previous versions of rails you cannot add dependent: :destroy to both o...

Has secure token in rails 5

Today I gona discuss about the ActiveRecord::Base#has_secure_password method, in rails 5 it became has_secure_token, it specifies that an attribute of your m...

How to add custom error pages in rails

How ever in practice we often have add custom error pages in rails application. Suppose we need to do some manipulation in the error pages like serve error p...

How to create tooltip using scss

Hello There, Today I am going to show how to create tooltip using scss. It’s very easy to create tooltip without using javascript.

Searching with sunspot solr.

Sunspot is a Ruby library for expressive, powerful interaction with the Solr search engine. Sunspot is built on top of the RSolr library, which provides a lo...

Advanced rails model generators

There are some people who give advice to not use rails generators and create models, controllers and etc. things manually. I don’t agree with them and my adv...

Find duplicate records and delete mysql

However in practice we need to see that there are some records in our database they have duplicate values. This problem can be resolve by using the uniqness ...

Working with elastic search ubuntu

Elasticsearch is an open-source, broadly-distributable, readily-scalable, enterprise-grade search engine. Accessible through an extensive and elaborate API, ...

Working with CSV in jquery Papa parse

Papa Parse is a powerful CSV (delimited text) parser that gracefully handles large files.you can easily use this and can parse large csv files efficiently.yo...

Set up CloudFlare's free SSL on Heroku

On September 29, 2014, CloudFlare introduced Universal SSL for the public. To be able to offer TLS certificates for free, they are using the extension to TLS...

Batched queries in rails

However in practice we need to perform certain task on each record and there are lots of records in the table. For this purpose we use batched queries in ra...

2015

Difference between Legacy and UEFI boot

Hello Friends, Today I am going to discuss about the difference between Legacy and UEFi boot. ###What is legacy boot: Legacy Boot is the boot process used b...

Fix rmagick issue in mac os

Hello Friends, However in practice you need to use rmagick in mac os. If you are facing any problem with rmagick then you just need to follow these steps:

Select-2 with active admin in rails

Hello There!!, In the previous blog we lean how to deploy a rails application with passenger and nginx. Today we are going to learn how to deploy a rails app...

How access controller method in models

How ever in practice some time we require to access the controller’s methods in the models.It’s quite easy to do so in rails. Here is an explanation of that:

Read/Write operations with google drive

However in practice, we need read/write operations with google drive.In ruby it’s pretty simple to perform read/write operations in google drive.Here is an ...

Design Patterns in Ruby: Singleton

The concept of the Singleton pattern is fairly straightforward: only a single instance of a class can exist. This can be useful when an application allows on...