#30950·curriculum

Installing PostgreSQL: instruct learners to use Figaro gem to hide away database credentials and API keys

Author: ZackHoangCreated Mar 29, 2026Updated Sep 25, 2026
LabelsStatus: StaleContent: Ruby on Rails

Checks

Describe your suggestion

I was taking a look at the Rails side of the curriculum and I noticed how using environment variables in Rails are not explained as succinctly in the Node path (using the --env-file flag follow by the .env file path after invoking node command).

Figaro gem's installation instruction is pretty straight forward. I think it would be better to introduce Figaro early on and instruct learners to hide away their DB credentials rather than hard-coding them, which is what this lesson is suggesting. It could also be nice to mention about hiding away API keys and leave API explanation to the later lessons. We could also just mention setting up Figaro once and delete any other mentions in future lessons to avoid repetition.

That's my point of view coming from a Node fellow, would love to hear what maintainers have to say about this

Path

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-on-rails-installing-postgresql

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

Source: TheOdinProject/curriculum