-
-
Save BenKanouse/9ba5286d567b009d577ec8a790985d79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jbuilder.encode do |json| | |
json.foo_bar 1 | |
end | |
=> "{\"foo_bar\":1}" | |
# What do I do if I want there to be a dot between foo and bar? | |
=> "{\"foo.bar\":1}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment