Tag

rails

Docker as Development Environment

In our everyday life at Evermore, we have to support and maintain many different software products for our clients. Each project has its own needs and requirements, which usually means that we have to deal with applications based on different technology stacks with different versions of tools and libraries. If you have to deal with the tech stacks of five or six different clients, it becomes really hard to match all the software versions that you…

Keep Reading by Harry Mishinev Harry Mishinev

How to add HTTP Basic Authentication to your Rails application

From time to time, it's good to deploy an early version of your application, so the client can take a look. With services like Heroku, it's super easy to deploy, but it's not good to leave the application visible to the public. HTTP Basic Authentication to the rescue Most of the PaaS providers abstract the web server from you, but even you have access to it, you can use Rails to setup basic authentication. First, create a new concern in your cont…

Keep Reading by Mirko Akov Mirko Akov

How to add Facebook like button that works with Turbolinks

After finding a solution to add Google Analytics tracking code, once again I had to face a problem that came with Turbolinks. I was not able to load the facebook script in the head of the page, to prevent it from being loaded with every single request. That's why, I decided to combine my research into a helpful CoffeeScript class. To be able to use it, you need to require the file in your application script and load them in the head section of th…

Keep Reading by Mirko Akov Mirko Akov

How to add Google Analytics tracking that works with Turbolinks

Turbolinks is a really nice way to improve your Rails 4 application's speed. It uses AJAX to load the pages and just replace the body element of your page. The official Google Analytics tracking code does not play nice with this approach, but we can easily make it work. The following code snippet is a nice and clean solution for a couple of reasons: It works nicely with Turbolinks Degrades to work even without Turbolinks enabled Uses the new trac…

Keep Reading by Mirko Akov Mirko Akov

How many things can you learn in a year?

Last month I celebrated one year working together with the Barouh & Partners team. And I can tell that I expected that changing work places would change the way I code and the tools I use, but I was not expecting such a big change. Catching up with Symfony Like every journey, this one had a beginning as well and it was called Symfony. I knew that the company was using it for most of their work and like everybody who has some experience with P…

Keep Reading by Mirko Akov Mirko Akov

Sync contacts from Rails to Exchange server

As a Rails developer I sometimes face the challenge to work with Microsoft servers and services. My latest challenge was to get Rails working with Windows Exchange server. Microsoft Exchange Server is calendaring software, a mail server and contact manager. My task was to make it possible to sync contacts from a Rails application to the Exchange server. This appears to be very time consuming task if you write the API protocol from scratch. Fortun…

Keep Reading by Zlatan Zlatanov Zlatan Zlatanov