UO

Uģis Ozols – The guy who develops software


Twitter


Bath Ruby 2016 conference ticket giveaway

Ticket goes to @iris. Here's how I chose the winner. Thanks to all who participated :) Do you want to go to Bath Ruby conference but don't have a ticket yet? Since I can't make it myself to the conference I've decided to give away my ticket. For free. No strings attached :) All you have to do is follow these two simple steps: Follow me (@…

Uģis OzolsUģis Ozols

Pry and rescue

In this short post I'm going to share a tip on one of the ways I use pry. If you don't know what pry is here's how it is described on the official website: Pry is a powerful alternative to the standard IRB shell for Ruby. It features syntax highlighting, a flexible plugin architecture, runtime invocation and source and documentation bro…

Uģis OzolsUģis Ozols

Adding slug support to Phoenix models

As I'm building elixirpipe.com I had a need to add slug support to a couple models. Well, it wasn't really a need but more of liking of urls like /posts/awesome-post-title instead of /posts/1. I'm going to use the same principle described in Programming Phoenix book but with one difference. I'm going to use a package called slugger to gen…

Uģis OzolsUģis Ozols

How to add SASS/SCSS support to Phoenix

As of this writing Phoenix is at version 1.0.3 and it doesn't come out of the box with SASS/SCSS support. I'm assuming your Phoenix application is using brunch so adding SASS/SCSS support is trivial. Open package.json which is located in the root directory of your Phoenix application and add sass-brunch dependency. Currently sass-brunch n…

Uģis OzolsUģis Ozols