class eval and instance eval in Ruby – Meta programming
class_eval class_eval allows us to define a method within the class outside of its original definition and without reopening the...
eat. sleep . code .
Learn and teach latest languages, framework and technologies.
class_eval class_eval allows us to define a method within the class outside of its original definition and without reopening the...
includes – Uses eager loading and optimally used when accessing each member attributes from the associated records. joins – Uses...
In ruby, which method gets executed when we extend or include it to the class. Which method has more precedence,...
Ruby is the flexibility it gives you to do the same thing in many different ways, so you can choose...
CSRF Stands for Cross Site Request Forgery. First of all, let us know what is a CSRF attack and how...
You would have been using redirect_to root_path in your controller action. We also have used redirect_to root_url. So are they...
Recent Comments