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…
Month: July 2018
Are you tired of typing always the same things on Rails console? what if you don’t need anymore?
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…
Learn how to make your Rails logs smarter with log_tags!
When you look at the logs of your application in development, they may appear clear and concise to you (probably not thou), but when you are looking at the production logs and there are many simultaneous requests, sometimes it is difficult to know exactly what like of the log is the next entry, or what…
3 simple words you can use to improve your ruby code: ‘redo’, ‘retry’ and ‘next’
As programmers we usually select our preferred tools, our preferred language, IDE, code editor, … For the last years, my favorite programming language is Ruby, not only because of Rails (but of course it has something to do with it), but because the language is powerful and flexible, and as such has many details that…
5 easy steps to implement JWT (Javascript Web Token) authentication for your API Only Rails apps
If you are writing an API only rails app, your clients will need to authenticate in some way to use your API, you have of course many options to choose from: You can build your own authentication You can Use a plugin like Devise You can use OAuth both accepting other provider or implementing your…
July open Call for Papers – use your weekend to submit some talk proposals!
Every now and then I remember a work mate from long ago asking how I was able to speech in many events in Brasil, and my answer was as simple as: “When they open the call for papers, I go there and ask if I can talk in the event, sometimes they say Yes” And…
Check the videos from my presentations at The Conf 2017 and RubyHACK 2018 – And a free Book!!!!!
One thing that I always wanted was to present a speech in an event outside Brasil, this objective was accomplished this year, thanks a lot RubyHACK team for this, and alto thanks a lot TheConf.Club, because last year’s event in São Paulo made me believe I could do a presentation in English. I’m Brazilian and…