Skip to content

Commit e8be139

Browse files
authored
Merge pull request #3963 from kenjis/fix-tutorial-create-news-items-code
Fix tutorial create news items code
2 parents fae081f + b6f61f8 commit e8be139

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

user_guide_src/source/tutorial/create_news_items.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ the slug from our title in the model. Create a new view at
3131
<textarea name="body"></textarea><br />
3232

3333
<input type="submit" name="submit" value="Create news item" />
34-
3534
</form>
3635

3736
There are probably only two things here that look unfamiliar. The
@@ -52,7 +51,7 @@ validation <../libraries/validation>` library to do this.
5251

5352
if ($this->request->getMethod() === 'post' && $this->validate([
5453
'title' => 'required|min_length[3]|max_length[255]',
55-
'body' => 'required'
54+
'body' => 'required',
5655
]))
5756
{
5857
$model->save([

0 commit comments

Comments
 (0)