New book

How this page is built the gem renders it — this is all you write

The same crud_form as edit — new vs. edit (POST vs. PATCH) is inferred from persisted?. The model declarations and permit list are shared with edit (see the Edit page).

app/views/books/new.html.erb
<%= crud_form @book %>

Read more: Forms

Slug:
Active: