忍者ブログ
[447]  [445]  [444]  [441]  [438]  [437]  [436]  [435]  [434]  [433]  [432
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

Windows10 2019/5版

1.エディタVSCodeをインストール
2.日本語化、画面左のアイコン(□)を押し「japanese」で検索

3.Rubyをインストール RubyInstaller whithDEVを選択 2.6.3
4.Msys2をインストール 1,2,3 devの進化形
5.SQliteのダウンロード
 sqlite.exe sqldiff.exe sqlite3_analyzer.exeをC:ruby***\bin内にコピー
6.sqlite3 - version   3.28.0

7.bundlerのインストール Start Command Prompt with Rubyを起動
8.gem install bundler
9.railsのインストール
10.gem install rails
11.rails -v 5.2.3

12.BootStrapをインストール

1.Node.jsをインストール (この時点の最新版12.2.0)
2.Gemfileに追記
gem 'bootstrap', '~> 4.1.3'
gem 'jquery-rails'

3.applocatio.cssの拡張子を.SCSSに変更して追記
@import "bootstrap";

4.boot.rbに追記
ENV['EXECJS_RUNTIME'] = 'Node'

5.bundle install
でOKです、ちゃんと起動しました
ENV。。。でエラーになっていたそうです。

index.html.rebに追記

<%= link_to "ブートストラップのボタン",new_task_path,class:"btn btn-success" %>
綺麗な緑のボタンが表示されればOK

rails sでサーバーを起動すると

ails 指定されたモジュールが見つかりません sqlite3_native.so
のエラーがでる


gem uninstall -a sqlite3

gem install  sqlite3

拍手

PR
カレンダー
03 2025/04 05
S M T W T F S
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
フリーエリア
最新CM
[03/10 DORA]
最新TB
プロフィール
HN:
dorabu
性別:
非公開
バーコード
ブログ内検索
P R
Copyright © ドラブーのアンドロイドとIoTなブログ All rights reserved. / Template by 四季. / Material by てんせん.

忍者ブログ [PR]