Hi,
I have seen number of times in Pylons 0.97 url_for() being used like:
url_for('/css/default.css')
But it doesn't seem like url('/css/default.css') is working.
Any solution for the above situation when non controller items like
images and external files are to be used?
Thanks!
On Sep 25, 2:48 pm, Ben Bangert <[email protected]> wrote:
> On Sep 20, 2010, at 5:24 PM, [email protected] wrote:
>
> > For templates, 'url' is already defined. (Not 'h.url', just 'url').
>
> > I seem to have a problem when I call url thusly:
>
> > url(controller='/foo', action='bar')
>
> As Bruce mentioned, '/' is no longer necessary to ignore existing paramters.
> That's why it wasn't working as you noticed. If you want to use existing
> parameters, you now use:
> url.current(action='bar')
>
> The Routes CHANGELOG here documents all the changes, reading them before
> upgrades is always advised.http://routes.groovie.org/changes.html
>
> Cheers,
> Ben
--
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.