#ruby
Read more stories on Hashnode
Articles with this tag
Sometimes I have this issue of parsing JSON that contains the string representation of Ruby hash for whatever reason. Problem It happens obviously...
By default, arrays of objects cannot be intersected in Ruby. By overriding eql?(other) and hash methods, we can make a Ruby object capable of...
This is my memo about how to implement a Comparable class. The Comparable mixin is useful when we want class instances to be ordered. # By default,...
While the snake case Hash keys are conventionally used in Ruby world, sometimes we prefer camel case keys in the front end. Here is my note on how to...
I want to let user update user account info without password, unless he/she wants to change password. By default, devise requires the user to enter...
This is my memo about how to implement basic CSV import/export in a Rails app. Example Routes # GET /cities List with import and export...