Created
May 29, 2015 07:11
-
-
Save yo-iida/bb98b5ddb0e0f770797e to your computer and use it in GitHub Desktop.
configのi18nからjsにデータを引き渡す
This file contains hidden or 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
<%= javascript_tag do %> | |
window.obj = <%= raw t('common.obj').to_json %>; | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment