eat. sleep . code

Learn and teach latest languages, framework and technologies.

TechEnthu

Latest Learnings

Check Out our posts

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...

Includes and joins in active record queries rails.

includes – Uses eager loading and optimally used when accessing each member attributes from the associated records. joins – Uses...

Ruby method lookup

Ruby method lookup

In ruby, which method gets executed when we extend or include it to the class. Which method has more precedence,...

splat (*) and double splat(**) arguments in ruby

Ruby is the flexibility it gives you to do the same thing in many different ways, so you can choose...

How does rails handle CSRF attacks using CSRF token…?

CSRF Stands for Cross Site Request Forgery. First of all, let us know what is a CSRF attack and how...

Difference between _path and _url in rails and when to use them…?

You would have been using redirect_to root_path in your controller action. We also have used redirect_to root_url. So are they...

1 2 3 4 5