Sha256: 4499e482afc215167f561766a2c24630895f4a50ec0f262e04ae01d693fbb2f9

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

<!-- Edit post form -->
<div class="container post">   
  <%= form_for @post, url: {action: :update} do |f| %>   
    <div>   
      <h3>Update Post</h3>   
    </div>   
    <div>   
      <p>   
        <%= "<div>#{@post.errors.full_messages.first}</div>".html_safe if @post.errors.any? %>   
      <div class="form-group">   
        <label>Title</label>   
        <%= f.text_field :title, class: "form-control", name: "title" %>   
      </div>   
      <div class="form-group">   
        <label>Description</label>   
        <%= f.text_area :description, class: "form-control", rows: "5", cols: "10", style: "resize:none;", name: 'description' %>   
      </div>   
      <div class="form-group">   
        <label>Created By</label>   
        <%= f.text_field :created_by, class: "form-control", name: "created_by" %>   
      </div>   
       </p>   
    </div>   
    <div class="row">   
      <div class="col-md-8"><%= link_to 'Back', posts_path, class: "btn btn-info"  %></div>
      <div class="col-md-4"><%= f.submit 'Update Post', class: "btn btn-success" %></div>
    </div>   
  <% end %>   
</div>  

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
form_creation-0.2.0 app/views/form_creation/posts/edit.html.erb
form_creation-0.1.9 app/views/form_creation/posts/edit.html.erb
form_creation-0.1.8 app/views/form_creation/posts/edit.html.erb
form_creation-0.1.7 app/views/form_creation/posts/edit.html.erb
form_creation-0.1.6 app/views/form_creation/posts/edit.html.erb