From the course: Ruby on Rails 6 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Configure a Ruby on Rails project - Ruby on Rails Tutorial
From the course: Ruby on Rails 6 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Create a new Ruby on Rails project3m 56s
-
Examine the file structure of a Ruby on Rails project4m 55s
-
(Locked)
Configure a Ruby on Rails project7m 2s
-
(Locked)
Access a Ruby on Rails project from a browser2m 25s
-
(Locked)
Generate a controller and view5m 24s
-
(Locked)
Examine how server requests are handled5m 43s
-
(Locked)
Define routes in a Ruby on Rails project7m 17s
-
(Locked)
Challenge: Experiment1m 15s
-
(Locked)
-
-
-
-
-
-