Learn to Code Special! | 30% off ALL ACCESS to One Month ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Hide

Creating a Custom Home Page

Day 2 ยท Lesson 1 ยท


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.