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
Written by Mert AKSOY
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#