You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Namespacing and isolating engine. Include documentation to mount and run tests. Using named route in helper partial. Including helper on init. Upgrading Ruby from 2.5.3 > 2.7.3. Upgrading Rubocop and linting accordingly.
Mount the engine in `config/routes.rb`. It is important to mount Abraham as `abraham`, since the inserted `abraham_tour` partial (below) leverages an isolated named route.
46
+
47
+
```
48
+
mount Abraham::Engine, at: 'abraham'
49
+
```
50
+
45
51
Require `abraham` in `app/assets/javascripts/application.js`
46
52
47
53
```
@@ -68,10 +74,13 @@ defaults: &defaults
68
74
69
75
You can also [write your own Shepherd theme](https://shepherdjs.dev/docs/tutorial-03-styling.html) based on Shepherd's [default CSS](https://github.com/shipshapecode/shepherd/releases/download/v6.0.0-beta.1/shepherd.css).
70
76
71
-
Tell Abraham where to insert its generated JavaScript in `app/views/layouts/application.html.erb`, just before the closing `body` tag:
77
+
Tell Abraham where to insert the JavaScript partial. This partial sets up the [Shepherd JS](https://shepherdjs.dev/) tour/s.
78
+
79
+
Generally it is inserted in `app/views/layouts/application.html.erb`, just before the closing `body` tag:
72
80
73
81
```erb
74
82
<%= abraham_tour %>
83
+
75
84
</body>
76
85
</html>
77
86
```
@@ -250,7 +259,12 @@ Use `bundle info [gemname]` to see where a bundled gem is installed.
250
259
251
260
#### Testing locally
252
261
253
-
This Rails engine contains a test app called `dummy` with controller and system tests. They'll all get run with `rails t`.
262
+
This Rails engine contains a test app called `dummy` with controller and system tests. You can run tests by:
263
+
264
+
```
265
+
~ rake app:assets:precompile
266
+
~ rails test
267
+
```
254
268
255
269
Please note that if you change anything in the `lib/generators` folder (i.e. configuration, intializer, migration) you'll need to migrate the `dummy` app accordingly.
0 commit comments