You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
416 B
21 lines
416 B
<h1>Creating a New Movie</h1>
|
|
|
|
<%= form_with(model: @movie) do |f| %>
|
|
<%= f.label :title %>
|
|
<%= f.text_field :title %>
|
|
|
|
<%= f.label :description %>
|
|
<%= f.text_area :description, rows: 7 %>
|
|
|
|
<%= f.label :rating %>
|
|
<%= f.text_field :rating %>
|
|
|
|
<%= f.label :released_on %>
|
|
<%= f.date_field :released_on %>
|
|
|
|
<%= f.label :total_gross %>
|
|
<%= f.number_field :total_gross %>
|
|
|
|
<%= f.submit %>
|
|
<% end %>
|