0.0
No release in over a year
A modern wrapper for using Shepherd.js with Ruby on Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 7.0.0
 Project Readme

Shepherd-Rails

A modern wrapper for using Shepherd.js with Ruby on Rails.

Installation

1. Add this line to your application's Gemfile:

gem "shepherd-rails"

2. Then execute:

$ bundle

1.1. Or install it yourself as:

$ gem install shepherd-rails

3. Generate an initializer with:

bundle exec rails generate shepherd_rails

4. Then you need to install the JavaScript package:

$ yarn add shepherd-rails

5. Import the stimulus controller to your controllers entry-point (eg: app/javascript/controllers/index.js):

import ShepherdRails from "shepherd-rails"
application.register("shepherd-rails", ShepherdRails)

Usage

ShepherdRails is a fairly opinionated way to use ShepherdJs. If you have suggestions/requests for alternative flows, feel free open an issue.

Dependencies

🙏🏻 Contributing

If you have an issue you'd like to submit, please do so using the issue tracker in GitHub. For us to help you in the best way possible, please be as detailed as you can.

📝 License

The gem is available as open source under the terms of the MIT License.