Adrian OPREA

February 19, 2022

First

This is my first attempt at blogging through Hey World. I've had a blog ever since 2014 but I was never consistent with it. The reason is that I am not a "creator". I only wrote when I felt like it and when I had something to say. 

I have one regret though, regarding my lack of consistency: I did not share all the great information I found on the web. Tons of articles read, that might have benefited a couple of people who follow me. 

This is my attempt to make amends and leave a paper trail of the materials I have to dig through.

Slowly leaving JS Wonderland

I am a web developer. I predominantly use JavaScript both on the front-end and backend and ci. But I'm growing more and more disappointed with the amount of bloatware and ways of doing things in JS land. 

So for this first article, since I'm moving towards the Ruby/Rails world, at least for my personal projects, I will share a couple of articles to help you get started with Ruby, Rails and Devise (auth package for Rails).

To be honest, I've managed to create in Rails, with about 12 hours worth of work, what I created with Strapi and Next.js in about 3 weeks. I'm stoked at the speed of development this framework can offer.

The list

One of the best (and complete) guides I've read
https://guides.rubyonrails.org/getting_started.html
https://guides.rubyonrails.org/layouts_and_rendering.html
https://api.rubyonrails.org/

Getting started guide for Rails 7 from DHH
https://www.youtube.com/watch?v=mpWFrUwAN88

How to set up Tailwind with Rails
https://tailwindcss.com/docs/guides/ruby-on-rails

On using enums
https://betterprogramming.pub/how-to-use-enums-in-rails-6-87600e292476
https://naturaily.com/blog/ruby-on-rails-enum

Customize Devise views (forms)
https://stackoverflow.com/questions/6646845/customizing-devise-views-in-rails/25826521

Devise flash messages not working with Turbo
https://github.com/heartcombo/devise/issues/5446
https://www.youtube.com/watch?v=yZDTBItc3ZM&t=316s
https://medium.com/@nejdetkadir/how-to-use-devise-gem-with-ruby-on-rails-7-33b89f9a9c13

A great gem to open auth emails locally
https://github.com/ryanb/letter_opener

Cheatsheet sent by a Twitter friend who does Rails
https://samantha-lurio.medium.com/rails-generators-cheat-sheet-61e2e58b7be7

Avo - made-for-you admin panel for your rails app
https://avohq.io