Rails Modular Models in Ruby on Rails Models like blog/post and blog/comment are examples of modular models. They help to separate functionality from the rest of the project and it's easy to do in rails just a little config and go.
Rails Rails encrypted credentials with docker compose Edit rails encrypted credentials in terminal and docker compose containers. Rails introduced encrypted, version controllable credentials in 5.2 deprecating secrets.yml
Rails Type Field Authorization in GraphQL Rails with Pundit This article explains how to authorize a specific field of a graphql type in rails with pundit gem for open-source verision.
Rails Import CSV data to Ruby on Rails 7 Procedure to import CSV data from a file to Ruby on Rails 7 with ActiveRecord
GraphQL ActiveStorage, Ruby on Rails 7, GraphQL and RSpec Multipart file uploading using ActiveStorage of Ruby on Rails 7 GraphQL with Unite tests of the RSpec
Rails File uploading in GraphQL API in Rails with ActiveStorage Multipart file uploading to GraphQL Ruby using ApolloUploadServer gem and saving files to S3 and other services. We will create a model, GraphQL Type, and mutation to upload the file.
Rails Change time like Time Cop while testing in Ruby on Rails Freeze time or travel back or future in time while testing Ruby on Rails application easily using Time Cop gem
Rails Annotate - Another development helper Gem for ROR Annotate gem helps in adding routes as comments in rout file and table schema in model.
Rails Sentry Error Tracker with Rails Sentry make lives of rails developers heaven. Sentry gives notification when an error comes in your app with all relevant data to reproduce the error. The integration to rails app is also quite easy just a few lines.
VSCode VS Code for Ruby on Rails development Here I explain extensions and settings I use with VS Code as a hard core ruby on rails developer.
Rails Mail Sending API perks over SMTP in Ruby on Rails using MailGun or SendGrid Using Email APIs gives features like more probability of delivery, subscriber list, and dynamic email templates.
General GitHub Actions: Run RSpec Test On Every Push Free GitHub Actions make it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub. Make code reviews, branch management, and issue triaging work the way you want.
Rails Simple ToDo GraphQL API in Ruby on Rails and MongoDB with Docker and VueJS (PART 03) In this article, we will create VueJS app of ToDo App with TailwindCSS using GraphQL API we built in previous articles.
Rails Simple ToDo GraphQL API in Ruby on Rails and MongoDB with Docker and VueJS (PART 02) In this tutorial, We will create a to-do app with Rails API, MongoDB, GraphQL, and VueJS using docker compose
Rails Simple ToDo GraphQL API in Ruby on Rails and MongoDB with Docker and VueJS (PART 01) In this tutorial, We will create a to-do app with Rails API, MongoDB, GraphQL, and VueJS using docker compose
TailwindCSS Building Minimal Responsive Signup Page with TailwindCSS tailwindcss makes part time frontend developers, not so great like me, look great. Its easy to create a sign up page in tailwindcss.
Rails Setting up BDD RSpec Test Suite for Rails API The best way of web development is using behaviour driven development with RSpec for Ruby on Rails.
Rails Active Record Transactions in Ruby on Rails Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action.
Rails Action Cable for Rails API Normally action cable documentation comes with web page connection. Here I explain to use action cable authentication and connection using API so that mobile apps etc can also use this websocket.
Rails Initialise Rails API backend and VueJS App Frontend in Docker for development Here I create a ruby on rails api backend with VueJS frontend project with help of docker-compose for development on any machine without installing any extra software.
Rails ActiveSupport Concerns in Ruby on Rails (Modules for callbacks and class methods) This tutorial explains how to use ActiveRecord Concerns in Ruby on Rails. I will create a concern for to use in controller where we want.
Ruby Web Scraping Script in Ruby Web scrapping is possible with a ruby. Here, I create a library that will scrap ruby gems and get latest version of the gem searched.
Rails Plain Old Ruby Objects (POROs) in Rails Fat Models During the implementation of the fat-model thin-controller phenomena, the model gets bloated with a lot of code but POROS resolves that issue.
VSCode VSCode PRO-TIP: Code Profiles (multi-environment development) Create different VSCode Instances based on settings, extensions and programming languages using one installed instance in system.
Rails JWT Token-based custom user authentication for Rails API only (Part 03) This part emphasis on sessions create/destroy services with email confirmation and reset password services of the user custom JWT auth.