rails

Rails Presentation Objects

7 minute read

If you ever used any MVC framework, I’m sure you asked yourself more than once, ‘Where should I put this piece of code?’ (If not that’s also fine). Well, the...

From jQuery to Stimulus

6 minute read

I tried to build an SPA without a shiny client side framework, I wanted to build something fast with good user experience and keeping it as simple as possible.

Get the user locale from http headers

less than 1 minute read

If you want to provide default localization support for guest user in your website yo can locate their browser locale by the following code:<pre style="ba...

Rails + Mongo + Heroku how?

less than 1 minute read

After a few hours of fighting with google I decided to write it all here: *This post is more relevant for windows users but can help others. What do you need...