--skip-test-unit
--skip-sprockets
--skip-turbolinks
--skip-action-cable
--skip-active-storage
--skip-action-text
--skip-action-mailbox
--skip-action-mailer
範例:
$ rails new my_project -m TEMPLATE_PATH --skip-turbolinks --skip-active-storage
-
連結 https://raw.githubusercontent.com/kaochenlong/rails-template/master/basic.rb
-
安裝 gem
-
建立
PagesController
及index.html.erb
- 設定首頁到
pages#index
- 連結 https://raw.githubusercontent.com/kaochenlong/rails-template/master/tailwind.rb
- 安裝 Gem
- 同
basic
基本版
- 同
- 安裝 Tailwind CSS
- 安裝 Purgecss 移除不必要的 CSS 定義
- 把
app/javascript
目錄換成app/frontend