Ruby

Ruby

Interview Question: Most Common N Page Path

You are given a file named 'paths.txt'. Each line in the file represents a user's browsing history in a web session. The task is to find the most common N page path in 'paths.txt'.

Read
Ruby on Rails

Understanding Pundit Authorization

Recreating the Pundit authorization gem in a Ruby on Rails application to get a better understanding of Pundit and object-oriented design.

Read
Ruby

Spicing up your Ruby Logger

Spicing up your ruby logger by metaprogramming a custom ruby logger class

Read
Ruby on Rails

Converting an existing Ruby on Rails application to MongoDB

How to convert an existing Ruby on Rails application from a relational database and active record, to MongoDB and Mongoid.

Read