Sha256: 4572d99480cceed8210e15cc7cf78c302dde7d1c788a3ff223568e2524db664a
Contents?: true
Size: 872 Bytes
Versions: 3
Compression:
Stored size: 872 Bytes
Contents
<div class="container"> <%-# This syntax [collections, @collection] tells form_for to use the routes from the engine named collections %> <%= form_for @collection do |f| %> <% if @collection.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@collection.errors.count, "error") %> prohibited this topic from being saved:</h2> <ul> <% @collection.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :title %><br /> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :description %><br /> <%= f.text_area :description %> </div> <%= hidden_collection_members %> <%= hidden_field_tag(:add_to_profile, @add_to_profile) %> <div class="actions"> <%= f.submit %> </div> <% end %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
curate-0.5.1 | app/views/curate/collections/_form.html.erb |
curate-0.5.0 | app/views/curate/collections/_form.html.erb |
curate-0.4.2 | app/views/curate/collections/_form.html.erb |