New Review for <%= link_to @movie.title, @movie %>

<%= 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 %>