Last Updated: February 25, 2016
·
536
· maksoy

Ruby on Rails - How to make a static page

Step 1
create your controller

$ rails g controller Home index

Step 2
Inside config/routes.rb, remove;

get "home/index"

and replace with;

root :to => "home#index"

Step 3
Remove index.html

$ rm public/index.html