Creating a Custom Home Page

Day 2 · Lesson 1 · 4 minutes


Let's use routes to point us in the right direction!

1. Run your Rails server 

Terminal

bash-3.2$ pwd
/Users/peterbell
bash-3.2$ cd ~/Desktop/one_month/one_month_stripe_payments/
bash-3.2$ pwd
/Users/peterbell/Desktop/one_month/one_month_stripe_payments
bash-3.2$ rails

And then go to "localhost:3000" in your browser

2. Update your Routes file to prepare a route to our homepage 

Terminal

$ subl . 
#open all the files in sublime

If you don't already have the "subl" command installed? Run the following command: 

$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

But if that doesn't work, check out the instructions here OS X Command Line @ Sublime, and ask us for help.

8 Questions

Having trouble? Don't worry, you're probably not the only one. Check out the questions other students have or ask yours.