For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
For MacOS Catalina, visit Install mysql2 on MacOS Catalina
Installing mysql2 gem errors on MacOS Mojave.
Make sure openssl is installed on Mac via Homebrew.
https://github.com/ankane/searchkick
By default, simply adding the call 'searchkick' to a model will do an unclever indexing of all fields (but not has_many or belongs_to attributes).
In practice, you'll need to customize what gets indexed. This is done by defining a method on your model called search_data
def search_data
| const puppeteer = require('puppeteer'); | |
| const escapeXpathString = str => { | |
| const splitedQuotes = str.replace(/'/g, `', "'", '`); | |
| return `concat('${splitedQuotes}', '')`; | |
| }; | |
| const clickByText = async (page, text) => { | |
| const escapedText = escapeXpathString(text); | |
| const linkHandlers = await page.$x(`//a[contains(text(), ${escapedText})]`); |
| { | |
| "vars": { | |
| "@gray-darker": "lighten(#151D26, 13.5%)", | |
| "@gray-dark": "lighten(#151D26, 20%)", | |
| "@gray": "lighten(#151D26, 33.5%)", | |
| "@gray-light": "lighten(#151D26, 46.7%)", | |
| "@gray-lighter": "lighten(#151D26, 93.5%)", | |
| "@brand-primary": "#685C79", | |
| "@brand-success": "#5cb85c", | |
| "@brand-info": "#FFBC67", |
| # Add this to your gem file | |
| group :production do | |
| gem 'dalli' | |
| gem 'rack-cache', :require => 'rack/cache' | |
| gem 'rack-contrib', :require => 'rack/contrib' | |
| end |