cdto the folder where you want to store your new application. For me, this is
cd ~/workspace. Then,
my_fancy_appand puts all of the boilerplate for a Rails application inside.
cdin to the application folder first; e.g.
cdin to the folder you just downloaded. Then,
bundle install(or just
bundlefor short) command fetches all of the 3rd party Ruby code that the application depends upon and installs it on your machine. You only need to do this once per application.
rails sis short for
rails server, like
rails cis short for
rails serverrunning in another window or tab somewhere. Find it and Ctrl-C (or just close the tab).
config/routes.rb, then the server will refuse to even start up. See if the error message complains about a line in that file.
rails cfor short.
rails consoleadding rows.
bundle installfails with a message about postgres or pgconfig, then
TypeError: Object doesn't support this property or method
Gemfile, delete the line
bundle installand restart your server.