×
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
1.プロジェクトの作成
rails new Proc_app
2.ディレクトリチェンジ
cd proc_app
3.btootstrap組み込み
前ブログ Node.jsのインストール(一回のみ)gemの編集
css>>cscss @import "bootstrap"
boot.rb ENV['EXECJS_RUNTIME'] = 'Node'
bundle install
4.modelの作成 Tは大文字
rails g model Task name:string discription:text
5.DBに反映
rails db:migrate
6.controller作成 小文字s付き
rails g controller tasks index new show edit
7.routesの変更
getに#
resurces :tests
root to: tests#index
rails new Proc_app
2.ディレクトリチェンジ
cd proc_app
3.btootstrap組み込み
前ブログ Node.jsのインストール(一回のみ)gemの編集
css>>cscss @import "bootstrap"
boot.rb ENV['EXECJS_RUNTIME'] = 'Node'
bundle install
4.modelの作成 Tは大文字
rails g model Task name:string discription:text
5.DBに反映
rails db:migrate
6.controller作成 小文字s付き
rails g controller tasks index new show edit
7.routesの変更
getに#
resurces :tests
root to: tests#index
PR