Ruby on Rails
Articles related to Ruby on Rails web development framework.
-
Generate an XML Sitemap with Ruby on Rails 7
In Ruby on Rails May 22, 2022
In this post, we'll generate an XML sitemap for a Ruby a Rails blog application. We'll use Rails 7.0.3 and Ruby 3.1.2.... -
Add and Change Default Column Value in Ruby on Rails
In Ruby on Rails April 23, 2022
In Ruby on Rails, it's easy to set and change a default value for columns in your application database. Say we have an online shop, and we want to set a default price for our products. How can we d...
-
Ruby on Rails 7 Credentials
In Ruby on Rails April 17, 2022
Ruby on Rails stores the encrypted credentials of your application in the credentials.yml.enc file in the config/ folder. Rails encrypts them using the master key in the config/ folder or the ENV["...
-
Ruby on Rails has_secure_password Tutorial
In Ruby on Rails Feb 23, 2022
The has_secure_password method adds methods to encrypt a password using the bcrypt algorithm. Also, it adds methods to authenticate against such a bcrypt password. For this method to work, the user mo... -
MVC Pattern in Ruby on Rails
In Ruby on Rails Feb 7, 2022
In this article, we will talk about how Ruby on Rails implements the MVC pattern. MVC (Model, View, Controller) was first described and implemented into the Smalltalk-79 user interface paradigm by...