On May 5, 10:10 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I guess the OP's problem comes from not having called
> h.javascript_include_tag('prototype')
> before...http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html...
Doh, that's true.
When copy-pasting from one of my previous Pylons projects, I just
ensured that
javascripts_app = StaticJavascripts()
app = Cascade([static_app, javascripts_app, app])
was properly set in config/middleware.py. I forgot that the
javascripts_app WSGI application just maps any requests to /
javascripts/ straight to the relevant JavaScript in the WebHelpers
package but it *does not* auto-include the JS files into templates.
And of course, I overlooked the lack of JS includes when I analyzed
the HTML sources of the erroneous documents...
As Bruno said, calling h.javascript_include_tag(...) did the trick.
Thanks for your help!
Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---