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.

17 lines
452 B

<h1>New Review for <%= link_to @movie.title, @movie %></h1>
<%= form_with(model: [@movie, @review]) do |f| %>
<%= render "shared/errors", object: @review %>
<%= f.label :name %>
<%= f.text_field :name, autofocus: true %>
<%= f.label :stars %>
<%= f.select :stars, [1, 2, 3, 4, 5], prompt: "Pick one" %>
<%= f.label :comment %>
<%= f.text_area :comment, placeholder: "What did you think?" %>
<%= f.submit "Post Review" %>
<% end %>