Ruby on Railsでの新規アプリケーション立ち上げ方法
自分に向けて記憶の範囲内だけでアウトプットします!
①
ターミナル
rails_6.0.0_newtest-dmysql
②
ターミナル
railsdb:create
③
ターミナル
railsgmodeltest
④
db/migrate/2020・・・・・
t.string:name,null:false (ここの行の記述は適当)
⑤
ターミナル
railsdb:migrate
⑥
config/routes.rb
roottotests#index(ここの行も適当)
⑦
ターミナル
railsgcontrollertests
⑧
app/controller/tests.controller.rb
defindex@tests=Test.allend
⑨
database.yml
utf8○○・・・の箇所をutf8のみにする
⑩
app/views/index.html.erb
ここにHTMLを記述する