Tag: Rails/デモアプリ
bundle exec rails new ~/work/demo --skip-bundle
bundle install --path vendor/bundle
bundle exec rails generate scaffold book title:string author:string summary:text
bundle exec rake db:migrate
bundle exec rails s
root 'books#index'
bundle exec rails new ~/work/demo --skip-bundle --database=mysql
-- mysql -uroot -pXXX mysql < create_user.sqlで実行 grant all privileges on *.* to testuser identified by ’testpasswd'; grant all privileges on *.* to testuser@localhost identified by ’testpasswd';
以下はSQLiteの場合と同様