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
(In american keyboard: <kbd>shift</kbd> + <kbd>cmd</kbd> + <kbd>.</kbd>)
20
20
21
+
#### Customize ERB Blocks (extra configuration)
22
+
In your atom configuration file. Insert each erb block you'd like as an array with the first element as the opening erb and the 2nd element as the closing erb into rails-snippets's erbBlocks configuration array.
23
+
24
+
As an example of how'd look like:
25
+
```
26
+
# config.cson
27
+
"*":
28
+
# all your configs...
29
+
"rails-snippets":
30
+
erbBlocks: [
31
+
['<%=', '%>']
32
+
['<%', '%>']
33
+
['<%#', '%>']
34
+
]
35
+
```
36
+
If you can stick to the default (above) you don't have to do anything. Otherwise add or remove erb blocks in the order you'd like.
37
+
21
38
## Conventions
22
39
The conventions for the snippets are usually the initials for the method.
0 commit comments