pjenvey  committed 977ad1a

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

  • Participants
  • Parent commits 1a2284a
  • Branches trunk

Comments (0)

Files changed (1)

File webhelpers/rails/

 * 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):