Sha256: 2329e3fc7690ea92a868ac54471d6a894c049e1aef49e5b5edde22cbb758e610

Contents?: true

Size: 1009 Bytes

Versions: 10

Compression:

Stored size: 1009 Bytes

Contents

<div class="container post">   
  <%= form_for @post,  url: {action: :create} do |f| %>   
    <div>   
      <h3>Add a Post</h3>   
    </div>   
    <div>   
      <p>   
      <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 'Create Post', class: "btn btn-success", id: "sub" %></div>
    </div>   
  <% end %>   
</div>  

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
form_creation-0.1.5 app/views/form_creation/posts/new.html.erb
form_creation-0.1.4 app/views/form_creation/posts/new.html.erb
form_creation-0.1.3 app/views/form_creation/posts/new.html.erb
form_creation-0.1.2 app/views/form_creation/posts/new.html.erb
form_creation-0.1.1 app/views/form_creation/posts/new.html.erb
form_creation-0.1.0 app/views/form_creation/posts/new.html.erb
form_creation-0.0.9 app/views/form_creation/posts/new.html.erb
form_creation-0.0.8 app/views/form_creation/posts/new.html.erb
form_creation-0.0.7 app/views/form_creation/posts/new.html.erb
form_creation-0.0.6 app/views/form_creation/posts/new.html.erb