Created
April 25, 2012 23:32
-
-
Save beakr/2494445 to your computer and use it in GitHub Desktop.
Embed Rails server info into Javascript
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
var editor = CodeMirror.fromTextArea(getElementById('editor'), { | |
theme: <%= @user.theme %> <%# Get users favorite theme from database. %> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment