jsvars rails plugin
I just released jsvars - a Rails plugin for taking some of the pain out of passing values from Rails -> JavaScript. This in the controller: jsvars[:loginPath] = login_path instead of this in a script tag: var loginPath = '<%= login_path %>';
Post a comment