Inversion::Template::

UriencodeTag class

Inversion URL encoding tag.

This tag is a derivative of the ‘attr’ tag that encodes the results of its method call according to RFC 3986.

Syntax

<?uriencode foo.bar ?>

Public Instance Methods

render( render_state )

Render the method chains against the attributes of the specified ‘render_state` and return them.

# File lib/inversion/template/uriencodetag.rb, line 22
def render( render_state )
        raw = super
        return escape_uri( raw.to_s )
end