Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 28, 2013
1 parent 36a51a4 commit b87365a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -327,7 +327,7 @@ header you can use L<Mojolicious/"types">.
$self->respond_to(
json => {json => {hello => 'world'}},
html => sub {
$self->content_for(head => '<meta name="author" content="sri" />');
$self->content_for(head => '<meta name="author" content="sri">');
$self->render(template => 'hello', message => 'world')
}
);
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -272,6 +272,12 @@ necessary attributes always be generated automatically.
<%= radio_button country => 'france' %> France
<%= radio_button country => 'uk' %> UK
For fields that failed validation with L<Mojolicious::Controller/"validation">
the C<field-with-error> class will be automatically set to make styling with
CSS easier.
<input class="field-with-error" name="age" type="text" value="250" />
This is a core plugin, that means it is always enabled and its code a good
example for learning how to build new plugins, you're welcome to fork it.
Expand Down

0 comments on commit b87365a

Please sign in to comment.