Anonymous committed 977ad1a

[svn] storing the absolute path to the javascripts dir in webhelpers.rails.javascript.javascripts_path

Comments (0)

Files changed (1)


 * For information on using Ajax, see `Prototype Helpers <module-railshelpers.helpers.prototype.html>`_.
 * For information on using controls and visual effects, see `Scriptaculous Helpers <module-railshelpers.helpers.scriptaculous.html>`_.
+import os
+import re
 from tags import *
-import re
+# The absolute path of the WebHelpers javascripts directory
+javascripts_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
+                                'javascripts')
 def link_to_function(name, function, **html_options):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.