差分

Tep3-onk

1,153 バイト追加, 2022年9月12日 (月) 10:21
編集の要約なし
[[category:memo|{{PAGENAME}}]]
== generate ==
 
$ rails generate scaffold User name:string email:string password_digest:string remember_digest:string admin:boolean activation_digest:string activated:boolean activated_at:datetime reset_digest:string reset_sent_at:datetime
 
$ rails generate scaffold User name:string email:string password_digest:string remember_digest:string role:integer activation_digest:string activated:boolean activated_at:datetime reset_digest:string reset_sent_at:datetime
 
% rails generate scaffold Note content:string user:references kind:integer meeting_time:integer role:integer line:integer
 
% rails generate scaffold Client user:references note:references content:string list:integer line:integer memo:text
 
$ rails generate scaffold Post content:text user:references picture:string
 
$ rails generate model Relationship follower_id:integer followed_id:integer
 
$ rails db:migrate RAILS_ENV=production
 
$ bin/dev
 
$ rails generate controller StaticPages home help about contact
 
エラー
ActionView::Template::Error (The asset "tailwind.css" is not present in the asset pipeline.
 
config/envitonments/production.rb
config.assets.compile = true
 
== ローカル ==
=== rubyの確認 ===