Skip to content

Rodrigo Urubatan – About Code

Helping ruby developers to use the best tools for each job so they can solve hard problems, with less bugs and have more free time.

Menu
  • Home
  • My last presentations
  • About
  • Privacy Policy
Menu

Category: articles

Implementing authentication with Google Firebase and Rails 6.

Posted on 2019-05-30 by Rodrigo Urubatan

Google has loads of services, and Firebase is one of my favorites because it provides lots of easy to use services that help me write one app for web and mobile. Today I’ll do a quick sample of how to use the authentication service from Firebase in your rails application. Most of it is javascript…

Read more

Simple and easy way to use ActiveRecord without Rails

Posted on 2019-05-21 by Rodrigo Urubatan

After a question in my other post about how to use sidekiq without rails, I decided to also post here how to use ActiveRecord without Rails, the basic idea is the same, we’ll start with an empty directory and create the files as we need.

Read more

Do not trust ActiveRecord data consistency validations, delegate that to the database

Posted on 2018-10-15 by Rodrigo Urubatan

Of course you can still use AR validations, that is not my point.  But data consistency related validations should not trust AR for that, for example, if you have a “unique” constraint, and you are just trusting the database, it is really easy to break the DB consistency if for some reason you have a…

Read more

Have you ever needed to provide an “advanced search” to your users?

Posted on 2018-09-05 by Rodrigo Urubatan

Working on a project some time ago, and my boss wanted to have an advanced search, where the users could write the search, adding fields, values, like you can do with google, but tailored for our application. In google you can do things like searching for all posts from sobrecodigo.com that have Ruby in the…

Read more

The easiest way to use sidekiq without Rails

Posted on 2018-08-30 by Rodrigo Urubatan

Sidekiq is usually my “goto” backend processing engine when I’m writing a Rails application. Recently I had to write a small app that was not a web app, so it didn’t needed Rails, but I’m very comfortable with Ruby, and decided to write the background processing app, or a small “daemon” as we called it…

Read more

How to deploy your dockerized rails app to AWS

Posted on 2018-08-22 by Rodrigo Urubatan

Back to docker and Rails, we’ve talked some time ago about how to dockerise your rails app, using docker and docker-compose to share a development environment configuration. To do that, we’ll use ECS service, that is the Elastic Container Service, this will allow us to build a docker container image, upload it to an ECS…

Read more

ActiveJob and declarative exception handling in your background workers

Posted on 2018-08-10 by Rodrigo Urubatan

Rails 5.2.1 was recently released, and released and it brought some improvements to ActiveJob (most of it was already in 5.1 really, the only thing added on 5.2 was the callback on discard_on), but lets keep in the subject here 😀 Recently I published a very basic post about ActiveJob, and these declarative exception handling…

Read more

6 Sidekiq tips and tricks for performance, mantainability and happiness!

Posted on 2018-08-03 by Rodrigo Urubatan

This is a very opinionated post, with some performance tips from someone that uses sidekiq for more than two years now, as as such I have already did some mistakes and learnt some tricks. My current opinion is that sidekiq is the best backend job engine for ruby/rails applications. And of course to use it…

Read more

Do you wanna see tabular data in your rails console? check here to learn how!

Posted on 2018-07-31 by Rodrigo Urubatan

Have you ever thought about how Rails console was not built for you to read the results of a query that returns more than one object? So, you are not the only one, and that is why there is a gem called ‘hirb’ that will blow your mind, it will make pretty tables of the…

Read more

Are you tired of typing always the same things on Rails console? what if you don’t need anymore?

Posted on 2018-07-28 by Rodrigo Urubatan

After you spend some time working in the same Rails project, being this project whatever project you are working for some time now, you probably use the Rails console a lot, many reasons: Testing code Seting up data Using “binding.pry” to “debug” some controller or model Put whatever you are doing in “rails c” now…

Read more
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Recent posts

  • Why Embrace Nesting in Ruby Modules?
  • An easy way to have a local “Github Copilot” for free
  • SPA without touching Javascript – The magic of Ruby on rails and Hotwire
  • I see Dead Jobs everywhere (sidekiq DeadSet)
  • Quick tips that help: rails notes

Arquives

  • May 2024
  • April 2024
  • February 2023
  • January 2023
  • December 2022
  • June 2021
  • March 2020
  • January 2020
  • July 2019
  • June 2019
  • May 2019
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • January 2018
  • November 2017
  • August 2015
  • August 2014
  • July 2014
  • August 2007

Categories

  • AI
  • articles
  • cfp
  • firebase
  • gems
  • git
  • opinion
  • presentations
  • projects
  • rails6
  • ruby
  • Sem categoria
  • server-api
  • tutorials
  • Uncategorized
© 2025 Rodrigo Urubatan – About Code | Powered by Minimalist Blog WordPress Theme