.collapse の要素に .show を追加する
loumo.jp 勉強になったのでメモ。
わかりやすかったです! メモ: techtechmedia.com
git rm db/*.sqlite3 git commit -m "Removing SQLite files from git" rm .gitignore wget https://raw.githubusercontent.com/github/gitignore/master/Rails.gitignore mv Rails.gitignore .gitignore git add .gitignore git commit -m "Ignoring files …
An error occurred while installing ffi (1.15.4), and Bundler cannot continue. Make sure that `gem install ffi -v '1.15.4' --source 'https://rubygems.org/'` succeeds before bundling. brew link --force libffi で出てくる export LDFLAGS="-L/us…
rails db:seed で ActiveRecord::StatementInvalid: SQLite3::ReadOnlyException: attempt to write a readonly database が出る問題は以下で解決。 stackoverflow.com はてぶろの編集画面にコードブロックない(パッとみ見当たらない)の使いづらいな。
#デベロッパーツールのコンソールで実行 ##Jsで無限スクロール const scroll = setInterval(function() { window.scrollTo(0, document.body.scrollHeight); }, 1500); ###ストップ clearInterval(scroll); ##ついでに「詳しく読む」を開ける const open = s…
mysql -u rootCREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON *.* TO 'username'@'localhost'; flush privileges;
AWS(Amazon Web Services) - 【助けてください】AWSにCarrierwaveで画像をアップロードすると異常に時間がかかる(スマホからのみ)(131565)|teratail <Carriwave> => 色々試したけど変化ナシ <ImageMagick> Imagemagickのメモリ消費が激しすぎる : LIFE IS MIRACLE WIND => なんか重</imagemagick></carriwave>…
PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.54**"? のエラー解決法。 $brew services start postgres たれみみ(@taremimi…
SSL更新が切れていて、更新する際に役にたったリンク qiita.com https://tagamidaiki.com/hard-to-upgrade-lets-encrypt-certificate/ たれみみ(@taremimi_7)
The video element contains cross-origin data, and may not be loaded. とでるとき。 sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args -allow-file-access-from-files
deploy.rb %x[git pull] %x[kill -9 `pgrep -f 'unicorn' `] %x[RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:migrate:reset] %x[RAILS_ENV=production DISABLE_DATABASE_ENVIRONMENT_CHECK=1 bundle exec rake db:seed]…
カラム名をremote_ _url で挟むの盲点だった CarrierWaveでURLから画像を保存、アップロードする方法 - ぷれすとぶろぐ
ローカルファイルにアクセスする。(Mac OSX) $ sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args -allow-file-access-from-files
var light = new THREE.SpotLight(); light.position.set(**,**,**); light.target.updateMatrixWorld(); ← 挟む たれみみ(@taremimi_7)
汚いのはお許しを・・・以下ソースだけ。app/assets/javascripts/channels/product.coffee jQuery(document).on 'turbolinks:load', -> open_messages = $('#open_messages') if $('#open_messages').length > 0 if (!App.product) App.product = App.cable.…
qiita.com ここの続きのテイ 自分用備忘録。 $cd ~ $git clone https://github.com/certbot/certbot $cd certbot $sudo -i $sudo ./certbot-auto certonly --agree-tos --webroot -w /var/www/rails/*アプリ名*/public -d hhbox.net -m *メアド --debug $/et…
AWSでSSL化するのにCertificateManegerだーメールサーバーが必要だーSESだーS3だーってややこしすぎて困ってたらとても簡単な記事見つけて助かりました!備忘録 www.wantedly.com aws.amazon.com
schoolコントローラーindexアクションのみbefore_actionでnot_registered_schoolをスキップしたいとき(ややこしい、、、) class ApplicationController < ActionController::Base before_action : not_registered_school,except: [:index] ,if: :school_cont…
やっぱりturbolinks、、、 以下を追加すれば特定のページで切れます <body data-turbolinks="false"> たれみみ (@taremimi_7)</body>
備忘録 morizyun.github.io
こんなエラーが出たので対処法。 Cannot allocate memory - fork(2) (Errno::ENOMEM) unicorn log どうやらメモリがあふれたっぽい。 GitHub - kzk/unicorn-worker-killer: Automatically restart Unicorn workers based on 1) max number of requests and 2…
クリップボードがしんでいたので備忘録 set mouse=a じゃなくて set mouse=r たれみみ(@taremimi_7)
1.Rails側のconbfig/database.ymkで以下のように設定変更。 default: &default charset: utf8mb4 encoding: utf8mb4 collation: utf8mb4_general_ci adapter: mysql2 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> username: root password: socket: /…
この2つ読んだらなんとかなる。 workingholiday-syrup.com カナダワーホリビザの申請方法!全体の流れをわかりやすく解説 | YOLO あとこれ↓ invitationが届いてからはここを参考に入力 comnee.jp パスポートの写し(画像)については、有効期限や顔写真が載っ…
Rails(ローカル)でサーバ立ち上げた後うまくプロセスを切れないとき、 調べるとたくさん、 ps aux | grep rails, kill -9 **プロセス番号** がでてきますが、 kill: (*****) - No such process と出てくるので、解決法。 lsof -wni tcp:3000 kill -9 **プロ…
<meta name="twitter:image" content="<%= asset_url('***.png') %>" /> たれみみ(@taremimi_7)</meta>
サーバー側でrake assets:precompile RAILS_ENV=production すると rake aborted! Uglifier::Error: Unexpected character '`' のエラーが。 app/assets/javascripts/application.jsの中のjsで使っていた変数展開のバッククォートが問題だったらしいです。 <…
1個前のcontrollerとactionを取得する。 url = Rails.application.routes.recognize_path(request.referrer) previous_controller =url[:controller] previous_action = url[:action] たれみみ(@taremimi_7)