mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
20 lines
521 B
ERB
20 lines
521 B
ERB
<h2>Create new rating</h2>
|
|
|
|
<%= form_for(@rating) do |f| %>
|
|
<% if @rating.errors.any? %>
|
|
<div style="color: red">
|
|
<h2><%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:</h2>
|
|
|
|
<ul>
|
|
<% user.errors.each do |error| %>
|
|
<li><%= error.full_message %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= f.select :beer_id, options_from_collection_for_select(@beers, :id, :to_s) %>
|
|
score: <%= f.number_field :score %>
|
|
<%= f.submit %>
|
|
<% end %>
|