Rails

Ruby on rails is a great framework for building full-stack applications

Rails

Add FAQ markup schema to your articles in Ruby on Rails

Learn how to add a FAQ model for your articles in your Ruby on Rails application and then create the markup schema that you can put within your head tag.

4 mins

Rails

How to pass attr accessors in your JSON response

If your attr accessors are not being passed through your json response, here's how to fix it

1 mins

Rails

How to run a worker from the console

If you want to test your sidekiq worker from the console, you can call it using the following command.

1 mins

Rails

What are the Ruby on Rails column types?

Find out all the different column types that you can add in your Ruby on Rails app.

3 mins

Rails

Current attributes in Rails

Rails 5.2 adds support for CurrentAttributes which give you access to global variables in your application.

4 mins

Rails

First vs take vs Limit methods in Rails

Learn about the differences between the methods first vs take vs limit

3 mins

Rails

Checklist for deploying your Rails app to production on Heroku

he things that you need to do before you deploy. This is my checklist that I follow when I deploy a new feature of my Rails app to production on Heroku.

3 mins

Rails

An easy way to connect your Rails server to your phone

Test your Rails application on your mobile phone or another laptop when they are connected to the same IP address

2 mins

Rails

How to upgrade from Rails 5.2 to Rails 6

Step by step process on how I upgraded my client's websites from Rails 5.2 to Rails 6

9 mins

Rails

Why a Rails form validation error renders the wrong URL and how to fix it

Learn a bit more about render, redirect_to and resources to find out why the form validation error renders the wrong URL

Rails

Why Letter opener gem doesn't open your letters

This is a simple way to find out why Letter opener is not opening your letters - use .deliver! so you can raise an exception

1 mins

Rails

Implement a passwordless authentication with Sorcery

Paswordless auth is great and provides a simple UX for your user - in this tutorial I implement in my Rails app using the auth gem Sorcery