Skip to content

Commit

Permalink
more links and correct precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 13, 2013
1 parent 11b3693 commit 9325424
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.58 2013-11-13

4.57 2013-11-11
- Improved compatibility with IO::Socket::SSL 1.957.
- Fixed error event bug in Mojo::IOLoop::Delay.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.57';
our $VERSION = '4.58';

sub AUTOLOAD {
my $self = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -899,7 +899,7 @@ that all stash values with a C<mojo.*> prefix are reserved for internal use.
my $url = $c->url_for('http://mojolicio.us/perldoc');
my $url = $c->url_for('mailto:sri@example.com');
Generate a portable L<Mojo::URL> object with base for a route, path or URL.
Generate a portable L<Mojo::URL> object with base for a path, URL or route.
# "http://127.0.0.1:3000/perldoc" if application has been started with Morbo
$c->url_for('/perldoc')->to_abs;
Expand Down
9 changes: 5 additions & 4 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -372,8 +372,9 @@ Generate file input element.
%= submit_button
% end
Generate portable form tag for route, path or URL. For routes that allow POST
but not GET, a C<method> attribute will be automatically added.
Generate portable form tag with L<Mojolicious::Controller/"url_for">. For
routes that allow POST but not GET, a C<method> attribute will be
automatically added.
<form action="/path/to/login">
<input name="first_name" />
Expand Down Expand Up @@ -474,8 +475,8 @@ Generate label.
<%= link_to 'http://mojolicio.us' => begin %>Mojolicious<% end %>
<%= link_to url_for->query(foo => 'bar')->to_abs => begin %>Retry<% end %>
Generate portable link to route, path or URL, defaults to using the
capitalized link target as content.
Generate portable link with L<Mojolicious::Controller/"url_for">, defaults to
using the capitalized link target as content.
<a href="/path/to/index">Home</a>
<a class="menu" href="/path/to/index.txt">Home</a>
Expand Down

0 comments on commit 9325424

Please sign in to comment.