Ruby Rail First Step: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
(Created page with "#### If you want to use MySQL <pre>rails new firstapp -d mysql</pre> # Move into the application directory cd firstapp # If you setup MySQL or Postgres with a username/pass...")
 
No edit summary
Line 1: Line 1:
#### If you want to use MySQL
* Your first application with MySQL


<pre>rails new firstapp -d mysql</pre>
<pre>rails new firstapp -d mysql</pre>

Revision as of 19:03, 13 November 2014

  • Your first application with MySQL
rails new firstapp -d mysql
  1. Move into the application directory

cd firstapp

  1. If you setup MySQL or Postgres with a username/password, modify the
  2. config/database.yml file to contain the username/password that you specified
  1. Create the database
rake db:create
rails server