Really cool gem that allows you to run your pending migrations from the comfort of your browser.
Beware of Date.yesterday on your code (A timezone history)
This post is the write-up of how I fixed a production problem that happened a few minutes ago, and can probably save some time for you too, so read this and remember for your next code that deals with time
How to create a request scope for your rails application
Some time ago I missed one of the cool features from the time I worked with JavaEE, that was a request scope for some variables.
I know the instance variables on controllers do a great job simulating it, but I needed to access context in a completely different part of the application, that wasn’t always called from controllers, variables that should be scoped to that request.
So I thought, I could create something like that for my rails app.
Random collection of Git Tips and Tricks
This post will not be about Ruby, but about another tool we use on a daily basis! It also doesn’t have a “story”, it is a collection of random Git tips that helped me in the recent past that I do not want to forget about 😀 And just as a note, this is far…
6 Lessons From CrossFit That will help your developer career (Or any other career in the matter of fact)
I work as a developer since 1997 (yes, it’s been a long time), and I try to bring most of what I like to my day to day life and if for any reason you follow me on Instagram you know that I’m kinda addicted to crossfit, of course I’m not an athlete, but I’ve found ways that crossfit teaches lots of people skills that I think are really useful in business and life.
Implementing authentication with Google Firebase and Rails 6.
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…
ActionText – the new rails WYSIWYG editor framework
https://edgeguides.rubyonrails.org/action_text_overview.html In many projects we have the requirement to have a rich text editor available, for full documents, user profiles, blog posts, comments, product descriptions, … And every time we think, which editor to use, some times we just get our current favorite, or the one we used in the last project, in my case…
Three things that make a senior Ruby developer (and how to get there)
This is a very opinionated post, dealing mostly with what I think makes a senior developer, the main focus will be Ruby because that is my main language today, but most of the things I’m commenting here are completely independent of programming language. Probably lots of people have a different idea of what is a…
Beware of rails default_scope – it might come back to bite you
Beware of default scope, most of the times it appears to be helpful, it will just be causing you hidden bugs to deal with later
Simple and easy way to use ActiveRecord without Rails
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.