Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
extended url_for example with query params
  • Loading branch information
kraih committed Jan 5, 2012
1 parent d673f36 commit 628d84b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -1010,11 +1010,11 @@ object.
Generate a portable L<Mojo::URL> object with base for a route, path or URL.
# "/perldoc" if application is deployed under "/"
say $c->url_for('/perldoc');
# "/perldoc?foo=bar" if application is deployed under "/"
say $c->url_for('/perldoc')->query(foo => 'bar');
# "/myapp/perldoc" if application is deployed under "/myapp"
say $c->url_for('/perldoc');
# "/myapp/perldoc?foo=bar" if application is deployed under "/myapp"
say $c->url_for('/perldoc')->query(foo => 'bar');
=head2 C<write>
Expand Down

0 comments on commit 628d84b

Please sign in to comment.