playground/app/views/updates/new.html.erb

25 lines
418 B
Text
Raw Permalink Normal View History

2026-05-17 03:44:36 +00:00
<div class="mainaboutbox">
<% if authenticated? %>
<%= link_to 'New Update', new_update_path %>
<% else %>
.
<% end %>
<div class="maininfo">
<%= form_with model: [@update] do |f| %>
<div>
<%= f.label :text %>
<%= f.rich_text_area :text %>
</div>
<%= f.label :icon_image %>
<%= f.file_field :icon_image %>
</div>
<%= f.submit "Create Update" %>
<% end %>
</div>
</div>