Ruby-on-Rails authentication tutorial with Devise

Ruby-on-Rails has no built-in authentication mechanism. So let's pick the well-known gem Devise in this tutorial.

#Ruby on Rails
Added: 3 Oct 2022
How To Setup Default Values For Attributes In Ruby On Rails

Have you ever thought that setting default values for attributes in Ruby on Rails could be a problem?

#Ruby on Rails
Added: 3 Oct 2022
Simple View Presenter Pattern in Rails without using Gems

What's the size of user.rb file in your current project? The default Rails way model-view-controller architecture often leads to a bloated model layer. Presenter pattern is one of the more straightforward ways to slim down your Rails models. It also helps to reduce the logic in the view layer and makes testing easier. In this blog post, I'll describe how to implement a presenter pattern without including additional gem dependencies.

#Ruby on Rails
Added: 3 Oct 2022

Get your work recognized: write a brag document

#Consulting
Added: 3 Oct 2022
Using a Dependency Graph to Visualize RSpec let

A visual answer to the question “what data is created when I execute this test?”.

#Ruby#testing
Added: 3 Oct 2022
Time extensions are an unsung hero of Active Support

Is the end of the quarter of Tuesday, a week from now, a Sunday? There’s a method for that.

#Ruby
Added: 3 Oct 2022
Rails Generators: Model or Resource?

Rails is a powerful tool for a developer, you can do so much with just a few keystrokes in the...

#Ruby#Ruby on Rails
Added: 3 Oct 2022
Automate React Native App deployments

Use Fastlane and continuous integration to automate building React Native apps.

#DevOps
Added: 30 Sept 2022
GitHub - kamui/retriable: Retriable is an simple DSL to retry failed code blocks with randomized exponential backoff.

Retriable is an simple DSL to retry failed code blocks with randomized exponential backoff. - GitHub - kamui/retriable: Retriable is an simple DSL to retry failed code blocks with randomized expone...

#Gem
Added: 29 Sept 2022
Creating continuous aggregates with Ruby and Timescale

I created the timescale gem and wrote an introductory post on how using the timescale gem with ruby.

#Ruby
Added: 29 Sept 2022
How we reduced our annual server costs by 80% — from $1M to $200k — by moving away from AWS

An interview with Zsolt Varga, the tech lead and general manager at Prerender

#DevOps
Added: 28 Sept 2022
A Flexible Framework for Effective Pair Programming

Pair programming is one of the most important tools we use while mentoring early talent in the Dev Degree program. It’s an agile software development technique where two people work together, either to share context, solve a problem, or learn from one another. Pairing builds technical and communication skills, encourages curiosity and creative problem-solving, and brings people closer together as teammates. In my role as a Technical Educator, I’m focused on setting new interns joining the Dev...

#Soft Skills
Added: 28 Sept 2022
Build Twitter Bot With Ruby - The Dev Post

How to make a bot for Twitter? The purpose of this Twitter bot is to retweet all hashtags related to #ruby or #rails.

#Ruby
Added: 26 Sept 2022
Writing a TodoMVC App With Vanilla JS in 2022

In just over an hour, I coded a TodoMVC App with modern (ES6+) vanilla JavaScript. The comparison to the previous JS TodoMVC from 6 years ago was shocking!

#Javascript
Added: 25 Sept 2022
ActiveModel::Serializer and You

    Today I thought I'd run through a few of the powerful things that the ActiveModel::Serializer gem...

#Ruby on Rails
Added: 25 Sept 2022
Building a modal form with Turbo Stream GET requests and custom stream actions

Using Ruby on Rails, Turbo Streams, and Stimulus to build server-rendered modal forms

#Javascript#Ruby on Rails
Added: 25 Sept 2022
Aging programmer

Back in college, they told me that I would start my career writing code, but eventually, I would move to a position where I would ask others to code my designs. To celebrate that this turned out to be completely false, here are some assorted reflections as a 40-year-old programmer that looks back: • Compared to my younger versions, I f...

#Soft Skills
Added: 25 Sept 2022
The Ultimate Ruby on Rails Cheatsheet

The Ultimate Ruby on Rails Cheat Sheet & Code Snippets General ...

#Ruby on Rails
Added: 23 Sept 2022
How To Scale Your Web Applications With Heroku

Building a web application is an exciting journey. This is even more so when users start signing up for your app in numbers. It doesn’t feel different from edging your opponents in competitive sports. After all, business is about competition, and nothing beats the thrill of success. Howeve

#DevOps
Added: 23 Sept 2022
Rails 7.1 Optimizes AR batching for whole table iteration

Rails 7.1 - in_batches implementation has improved to give optimized results for whole table iterations using range queries instead of IN query.

#Ruby on Rails
Added: 22 Sept 2022
GitHub - holidays/holidays: A collection of Ruby methods to deal with statutory and other holidays.  You deserve a holiday!

A collection of Ruby methods to deal with statutory and other holidays. You deserve a holiday! - GitHub - holidays/holidays: A collection of Ruby methods to deal with statutory and other holidays....

#Gem#Ruby
Added: 22 Sept 2022
Deploying Rails with Docker and AWS Fargate

Want to deploy a Rails app with Docker and AWS, but not sure where to start? AWS Fargate simplifies the convoluted process of deploying Docker on Amazon's Elastic Container Service (ECS). It's also a good alternative to Heroku.

#DevOps#Ruby on Rails
Added: 22 Sept 2022
My Hybrid Docker & Ruby Development Environment

After fucking up my install of MySQL last year by trying to move from MariaDB to MySQL as I wanted to try JSON support out, I set out to find a better way of developing my Rails apps, instead of resorting to using something like Vagrant which would create separate VMs for each project.

#Ruby on Rails
Added: 22 Sept 2022
Why the number input is the worst input

Think that web form has got your number? If you used input type="number", you may be surprised to find that it doesn't.

#Javascript
Added: 22 Sept 2022
Buggy Rails Code: The 10 Most Common Mistakes That Rails Developers Make

There are many Ruby on Rails best practices that can help you avoid these common Rails programming mistakes. Read on to grow your skills!

#Ruby on Rails
Added: 21 Sept 2022
First Previous Next Last