Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.
Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.
Replace
mysql-clientwith whichever mysql package you are using
| class Whereable | |
| def initialize(where:, model: Item, ranking_conditions: [], valid: true, data_source: nil) | |
| @model = model | |
| @where = where | |
| @data_source = data_source | |
| @ranking_conditions = ranking_conditions | |
| @valid = valid | |
| end | |
| def valid? |
| """Performs automatic speed edits to audio books. | |
| Example usage: | |
| Assuming you have an audiobook book.aax on your Desktop: | |
| 1. Convert it to wav: | |
| ffmpeg -i ~/Desktop/book.aax ~/Desktop/book.wav | |
| 2. Adjust the speed: |
| # thanks Recker Swartz - https://gorails.com/forum/install-bootstrap-with-webpack-with-rails-6-beta | |
| Updated: | |
| Rails 6 with Bootstrap and configured with Webpack | |
| Step 1: | |
| yarn add bootstrap jquery popper.js | |
| Step 2: | |
| in config/webpack/environment.js add the following: |
You may need to install yarn (Javascript package manager) before you can create Rails apps that involve Javascript frontends.
For the WSL run the following commands:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
| image: circleci/ruby:2.5.1-node-browsers | |
| pipelines: | |
| default: | |
| - step: &tests | |
| name: Tests | |
| caches: | |
| - bundler | |
| - node | |
| services: |
This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).
This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.jsdiff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api
Rails.application.routes.draw do
constraints subdomain: "api" do
scope module: "api" doOptions included below:
docker-composebrewThis gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.