how to setup ruby on rail in windows
STEP 1 — Install Linux (WSL)
In PowerShell (Admin) run:
Wait till it finishes.
Then restart your laptop.
🧰 STEP 2 — Open Ubuntu
After restart:
-
Press Windows key
-
Search Ubuntu
-
Open it
It will ask:
Type anything and remember it.
Now you are inside Linux (this is where Rails will run).
🧰 STEP 3 — Update Linux
In Ubuntu terminal run:
🧰 STEP 4 — Install Ruby build dependencies
Run:
This replaces all those brew install commands you saw on YouTube.
🧰 STEP 5 — Install rbenv (Ruby Version Manager)
Then:
Close Ubuntu terminal and open it again.
🧰 STEP 6 — Install Ruby
If it shows 3.3.x → success ✅
🧰 STEP 7 — Install Node.js (Rails needs it)
🧰 STEP 8 — Install Rails
🧰 STEP 9 — Install PostgreSQL
🚀 STEP 10 — Create Your First Rails App
Open browser:
🎉 Your Rails app is running!
🧠 IMPORTANT RULE
Always use:
Ubuntu terminal
Never use:
Windows CMD or PowerShell for Rails
No comments:
If you have any doubt so you can comment me then i will 100% help you ,Through comment Chat