Skip to content

Instantly share code, notes, and snippets.

@beakr
Created April 25, 2012 23:32
Show Gist options
  • Save beakr/2494445 to your computer and use it in GitHub Desktop.
Save beakr/2494445 to your computer and use it in GitHub Desktop.
Embed Rails server info into Javascript
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