Ruby Rail First Step
Revision as of 22:47, 14 November 2014 by Nicolas Rollin (talk | contribs)
- Your first application with MySQL
rails new firstapp -d mysql
- Move into the application directory
cd firstapp
- If you setup MySQL or Postgres with a username/password, modify the
- config/database.yml file to contain the username/password that you specified
- Create the database
rake db:create
- Start the server
rails server
- Visite the web site
- change the default page
Add the following into config/routes.rb
root :to => "home#index"