Skip to content
Permalink
Browse files

Fixed validation syntax in Getting Started guide

  • Loading branch information...
jodosha committed Jul 21, 2016
1 parent c2871d5 commit 4bd701e4a414bfbb4de0b59a3d3461870b93c904
Showing with 5 additions and 3 deletions.
  1. +5 −3 source/guides/getting-started.md
@@ -956,9 +956,11 @@ require 'spec_helper'
require_relative '../../../../apps/web/views/books/new'
class NewBookParams < Hanami::Action::Params
params :book do
required(:title).filled(:str?)
required(:author).filled(:str?)
params do
required(:book).schema do
required(:title).filled(:str?)
required(:author).filled(:str?)
end
end
end

0 comments on commit 4bd701e

Please sign in to comment.
You can’t perform that action at this time.