「Tep3」の版間の差分

提供: wikipokpok
移動先: 案内検索
7行目: 7行目:
 
  % rails new tep3 -d postgresql
 
  % rails new tep3 -d postgresql
 
  database.yml username
 
  database.yml username
 +
rails db:create
 +
 +
$ yarn add bootstrap@next
 +
$ yarn add @popperjs/core
 +
 +
app/javascript/packs/application.js
 +
import "bootstrap";
 +
import "../stylesheets/application";
 +
 +
% mkdir app/javascript/stylesheets/
 +
% touch app/javascript/stylesheets/application.scss
 +
@import "bootstrap";
 +
 +
app/views/layouts/application.html.erb
 +
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>

2022年1月24日 (月) 14:04時点における版

% ruby -v
% rbenv versions
% rbenv local 2.7.5
% rails -v
% rails new tep3 -d postgresql
database.yml username
rails db:create
$ yarn add bootstrap@next
$ yarn add @popperjs/core
app/javascript/packs/application.js
import "bootstrap";
import "../stylesheets/application";
% mkdir app/javascript/stylesheets/
% touch app/javascript/stylesheets/application.scss
@import "bootstrap";
app/views/layouts/application.html.erb
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>