最新版 |
編集中の文章 |
19行目: |
19行目: |
| | note_role || note(jiin)のアクセスレベル || app/controllers/application_controller.rb | | | note_role || note(jiin)のアクセスレベル || app/controllers/application_controller.rb |
| |- | | |- |
− | | action_role || アクションへのアクセスコントロール || app/controllers/
| + | | |
− | |-
| |
− | | controller_name_overlap || コントローラー名の重複登録を避ける || app/controllers/action_roles_controller.rb
| |
− | |-
| |
− | | set_feed_jiins || ユーザーのノート(jiin)を表示する すべてのページで必要 || app/controllers/
| |
− | |-
| |
− | | || ||
| |
− | |-
| |
− | | || ||
| |
− | |-
| |
− | | || ||
| |
− | |-
| |
− | | || ||
| |
| |} | | |} |
| | | |
37行目: |
25行目: |
| {| class="wikitable sortable" | | {| class="wikitable sortable" |
| |- | | |- |
− | ! ||
| + | ! 見出しテキスト |
− | |-
| |
− | | || rails generate model client name:string yomi:string ie_id:integer nusi:boolean memo:string order:integer generation:string user:references note:references
| |
− | |-
| |
− | | やり直し || rails destroy model client name:string yomi:string ie_id:integer nusi:boolean memo:string order:integer generation:string user:references note:references
| |
− | |-
| |
− | | || rails generate controller settings index property bankbook account description postscript
| |
− | |-
| |
− | | || rails generate controller role_settings index show new edit create update destroy
| |
− | |-
| |
− | | やり直し || rails destroy controller role_settings index show new edit create update destroy
| |
− | |-
| |
− | | || rails generate migration add_admin_to_users admin:boolean
| |
− | |-
| |
− | | やり直し || rails destroy migration add_order_to_categories order:integer
| |
− | |-
| |
− | | ||
| |
− | |}
| |
− | | |
− | == migration ==
| |
− | {| class="wikitable sortable"
| |
− | |-
| |
− | ! 見出しテキスト !! 見出しテキスト | |
− | |-
| |
− | | || rails db:migrate
| |
− | |-
| |
− | | || rails db:migrate:status
| |
| |- | | |- |
− | | やり直し || rails db:rollback STEP=1 rails db:rollback STEP=2 [https://railsguides.jp/active_record_migrations.html 参考]
| + | | rails generate model client name:string yomi:string ie_id:integer nusi:boolean memo:string order:integer generation:string user:references note:references |
| |- | | |- |
− | | || rails db:seed
| + | | rails generate controller settings index property bankbook account description postscript |
| |- | | |- |
− | | || rails db:migrate:reset
| + | | rails generate controller role_settings index show new edit create update destroy |
− | |-
| |
− | | セル内のテキスト || セル内のテキスト
| |
| |} | | |} |
| | | |
85行目: |
45行目: |
| | javascript読み込み || <%= javascript_pack_tag 'shared/note_form' %> | | | javascript読み込み || <%= javascript_pack_tag 'shared/note_form' %> |
| |- | | |- |
− | | ルーティングの確認 || rails routes | + | | セル内のテキスト || セル内のテキスト |
− | |-
| |
− | | s3セッティング || heroku config:set AWS_ACCESS_KEY_ID="xxxx"
| |
− | |-
| |
− | | || heroku config:set AWS_SECRET_ACCESS_KEY="xxxx"
| |
− | |-
| |
− | | || heroku config:set AWS_BUCKET="tepnote"
| |
− | |-
| |
− | | || heroku config:set AWS_REGION="ap-northeast-1"
| |
− | |-
| |
− | | 郵便番号から検索 || app/views/layouts/application.html.erb [https://pinzolo.github.io/2017/03/15/yubinbango-with-turbolinks.html 参考] <script src="https://yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
| |
− | |-
| |
− | | 【jQuery】要素を指定するセレクタの使い方 || [http://www.hp-stylelink.com/news/2013/11/20131122.php 参考]
| |
− | |-
| |
− | | 一括登録フォーム || [https://rails.densan-labs.net/form/bulk_registration_form.html 参考]
| |
− | |-
| |
− | | Prawn pdfを出力するリンク ||<%= link_to "PDFを表示", 適宜指定_path(format: "pdf") %>
| |
− | |-
| |
− | | Turbolinks || [https://www.autovice.jp/articles/142 参考]
| |
− | |-
| |
− | | Calendar || [https://code-notes.com/lesson/31 参考]
| |
− | |-
| |
− | | 0埋め || format
| |
− | |-
| |
− | | puma.rb | workers Integer(ENV['WEB_CONCURRENCY'] || 2) [https://qiita.com/yo-iida/items/20e86e913000f6d080ca 参考]
| |
− | |-
| |
− | | モーダルウィンドウ || [https://tech-dig.jp/js-modal/ 参考]
| |
− | |-
| |
− | |
| |
| |} | | |} |
| | | |
| フォローされたらpostが見える | | フォローされたらpostが見える |
| followed_user_microposts ass/helpers/users_helper | | followed_user_microposts ass/helpers/users_helper |
− |
| |
− | == bootstrap javascriptが突然動かなくなった ==
| |
− | yarn add bootstrap@next
| |
− | バージョンを選んでインストールできる gemと同じ3.4.1を選択
| |
− | yarn add @popperjs/core
| |
− | 以上でyarnからbootstrapが入った
| |
− | 続いて設定
| |
− | app/javascript/packs/application.js app/javascript/stylesheets/application.scss app/views/layouts/application.html.erb
| |
− | 次にjavascript
| |
− | yarn add jquery
| |
− | 続いて設定
| |
− | config/webpack/environment.js javascript/packs/application.js
| |
− | 突然動かなくなった原因はわからない
| |
− | webpackerの上書きもした
| |
− | rails webpacker:install
| |
− | rails webpacker:compile
| |
− | 動作確認
| |
− | <nowiki><p>Javascriptは動いていません</p></nowiki>
| |
− | <script type="text/javascript">
| |
− | $(document).ready(function() {
| |
− | $("p").text("Javascriptは動いています");
| |
− | });
| |
− | </script>
| |
| | | |
| == エラー == | | == エラー == |