Created
May 30, 2013 15:57
-
-
Save dcvezzani/5679005 to your computer and use it in GitHub Desktop.
Dynamically determine the route namespace for a bcms content block resource.
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
var cms_namespace = "<%= link_to("xxx", block_path(@block)).match(/href=\"\/([^\/]+)/)[1] %>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment