-
TIL: Converting to Boolean in ActiveRecord
Every once in a while there is a need to pass string representations...
-
TIL: atob and btoa functions in JS
I came across a JS code like this (not the exact code):
var foo...
-
TIL: Running jekyll app in C9 IDE
Today I tried to use c9 ide and discovered that it does not automatically...
-
TIL: Variable Hoisting - Terminology
Been developing for quite sometime in the web but it is just today...
-
Checking if fragment caching works in development env
Lets say we have the following
{% gist lyc4n/5ffda03305ede3cd936cb9898112894e...
-
-
-
Using AR after_initialize for the first time
So I have been using Rails for quite some time but it was only...
-
Uploading file in controller spec
Here is how to create an uploaded file in your Rails' controller...
-
More organized Constant storage in Ruby
Probably when you create an ActiveRecord model you would also have...