Skip to content

Instantly share code, notes, and snippets.

@charlesjolley
Created January 23, 2011 22:33
Show Gist options
  • Save charlesjolley/792518 to your computer and use it in GitHub Desktop.
Save charlesjolley/792518 to your computer and use it in GitHub Desktop.
In index.rhtml
<% if config.html5_history %>
<script>
SC.routes.baseURI = <% "#{config.index_root}/#{config.language}".to_json %>;
SC.routes.wantsHistory = true;
</script>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment