The Power and Simplicity of Ruby on Rails Framework

In the world of web development, there are numerous frameworks to choose from, each with its own set of advantages and features. One such framework that has gained immense popularity is Ruby on Rails (RoR). In this blog post, we will explore why Ruby on Rails is a preferred choice for many developers and businesses … Read more The Power and Simplicity of Ruby on Rails Framework

Include v/s Extend

When we include a module into a particular class, the module methods are imported as instance methods. Whenever we extend a module into a class, the module methods are imported as class methods. I hope you guys enjoy and clear your concept about include and extend. If you want more helpful tips and trick just go through this link: https://jsgrip.com

Ruby 1.8.7 Mac OS Bigsur __rvm_make -j8 | Error running ‘__rvm_make -j16’

Right-click Terminal from the Application/Utility folder, Get Info, tick the “Open using Rosetta” box. Uninstall Homebrew Reinstall Homebrew/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Restart terminal Check Homebrew is working fine: brew doctor Reinstall openssl: brew install openssl Install Ruby: rvm install 2.5.3 Or any version Solution for: Ruby 1.8.7 Mac OS Bigsur __rvm_make -j8′Solution for: Cannot install ruby-2.2.7 on Mac … Read more Ruby 1.8.7 Mac OS Bigsur __rvm_make -j8 | Error running ‘__rvm_make -j16’

Ruby on Rails : Callbacks V/S Observers

Observers 🧐 Observer lives longer.It can be attached & detached at any time.It is used when method is not directly associated to life cycle of Active Record objects.If you want to create observer with command-line you need to add gem first because without observer gem you couldn’t run any observer generator command so first add … Read more Ruby on Rails : Callbacks V/S Observers

How to Use Where Method In Rails

In Rails, you can query the database through ActiveRecord methods to access table data. And this one ActiveRecord methods is Where, today we are learn multiple ways to use Where method in rails. If you want to fetch multiple data into one single query then use where method. ActiveRecord gives you a number of ways … Read more How to Use Where Method In Rails