「Tep8」の版間の差分

提供: wikipokpok
移動先: 案内検索
(create application)
(create application)
4行目: 4行目:
 
  % rails new . --css=tailwind --javascript=esbuild --database=postgresql
 
  % rails new . --css=tailwind --javascript=esbuild --database=postgresql
  
  % bundle add tailwindcss-rails
+
  % bin/bundle add tailwindcss-rails
 +
 
 +
% bin/rails tailwindcss:install
 +
 
 +
% bin/setup
 +
 
 +
% rails generate scaffold NameList name:string kana:string head:boolean line:integer buddhist_name:string alive:boolean birth:string death:string g_age:string memo:text generation:string
 +
 
 +
validates :name, presence: true
 +
 
 +
t.string :name, null: false

2023年5月30日 (火) 08:51時点における版

準備

create application

% rails new . --css=tailwind --javascript=esbuild --database=postgresql
% bin/bundle add tailwindcss-rails
% bin/rails tailwindcss:install
% bin/setup
% rails generate scaffold NameList name:string kana:string head:boolean line:integer buddhist_name:string alive:boolean birth:string death:string g_age:string memo:text generation:string
validates :name, presence: true
t.string :name, null: false