Skip to content

Commit 1a0a60b

Browse files
committed
Added note for correct requiring Rabl
1 parent 0266252 commit 1a0a60b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ alert(customNamespace.yourHash)
132132
Now you can write your variables assign logic to templates with [Rabl](https://github.com/nesquena/rabl).
133133
The way of writing Rabl templates is very clearly described in their repo.
134134

135-
Add Rabl to your Gemfile
135+
Add Rabl to your Gemfile before requiring gon - because gon checks Rabl constant
136136

137137
`Gemfile`
138138

139139
``` ruby
140140
gem 'rabl'
141+
...
142+
gem 'gon'
141143
```
142144

143145
Profit of using Rabl with gon:

0 commit comments

Comments
 (0)