In the previous Ruby on Rails development from scratch (Windows) (iii)-Implementation of the jump between pages, we created two pages for the jump migration, this time we write a single form of maintenance of the TIM Delete Check the example.
1. This time we recreate a project depot, and follow the steps in the previous article to create a depot project.
2. Create a database.
You can use the Rails command line, created via MySQL, first navigate to the depot directory, and use the command:
Depot> Mysql-u root–p
The password is blank, and the following command is executed after connecting to MySQL:
mysql> CREATE database depot_development;
mysql> CREATE database depot_test;
mysql> CREATE database depot_production;
Mysql> Grant all in depot_development.* to ' Dave ' @ ' localhost ';
Mysql> Grant all in depot_test.* to ' Dave ' @ ' localhost ';
Mysql> Grant all on depot_production.* to ' prod ' @ ' localhost ' identified by ' wibble ';
Mysql> exit
After the database is created, modify the contents of the Database.yml file in the Depotconfig directory and set the username entry of the development Library and test library to NULL.
You can also use the instantrails in the phpMyAdmin to create, phpMyAdmin boot can follow the following figure:
Here we are going to create three database depot_development,depot_test,depot_public, which are used for development, testing, publishing, respectively.