Module: ShepherdRails::ApplicationHelper
- Defined in:
- app/helpers/shepherd_rails/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#shepherd_tour(tour:, context: {}) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/shepherd_rails/application_helper.rb', line 5 def shepherd_tour tour:, context: {} tag.div nil, data: { controller: 'shepherd-rails', 'shepherd-rails-tour-name-value' => tour, 'shepherd-rails-endpoint-value' => shepherd_rails.tour_statuses_path, 'shepherd-rails-config-value' => I18n.t(tour, scope: 'shepherd_rails'), 'shepherd-rails-context-value' => context } end |