We gonna use Pagy for pagination
bundle add pagy
include defaults on application_controller.rb
include Pagy::Backend
| import { Controller } from "@hotwired/stimulus"; | |
| export default extends Controller { | |
| connect() { | |
| this.reconnect = this.reconnect.bind(this); | |
| window.addEventListener('turbo:morph', this.reconnect); | |
| myLibrary.create(); | |
| } | |
| disconnect() { |
We gonna use Pagy for pagination
bundle add pagy
include defaults on application_controller.rb
include Pagy::Backend
| # you can use sls to as an alias to serverless | |
| serverless = sls | |
| # check version | |
| sls -v | |
| # init project | |
| sls | |
| # deploy project |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace |