From the course: Ruby on Rails 6 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Configure a Ruby on Rails project

Configure a Ruby on Rails project - Ruby on Rails Tutorial

From the course: Ruby on Rails 6 Essential Training

Start my 1-month free trial

Configure a Ruby on Rails project

- [Instructor] In this movie, we're going to learn how to configure our new Ruby on Rails project. As you'd expect, most of the configurations we're going to do are going to belong in the config directory. Now you may be wondering, where to put things in this config directory? One of the primary files is application.rb but you're not going to add code to this most of the time. And you'll see that if you read the file, you'll see there's a note here that says that the settings in config environments take precedents over anything that's in this file and application configuration can go into the config initializers directory. And in fact, that's where you're usually going to put your changes. So application.rb will look in those places and it's better to put your code there. Inside initializers you can see there's already a number of different initializers. This is where you would add code that would run right at boot so…

Contents