Lets add a static page to our app that will hold information about the author of this application — you!
rails generate controller pages info
This command will create you a new folder under
/pages and under that a file called
info.html.erb which will be your info page. This also adds a new route to your
routes.rb - open this file to see what the new route looks like.
Now you can open the file
app/views/pages/info.html.erb and add information about you in HTML and then take your browser to http://localhost:3000/pages/info to see your new info page.
There is currently no way to reach this new page from the app. Add a link to it in the top menu bar.