Sha256: 6f45c167e3c12c82f61fab092022acff4633be9f48d57ccb0a30b566f6d13f02

Contents?: true

Size: 787 Bytes

Versions: 1

Compression:

Stored size: 787 Bytes

Contents

<div class="container">   
  <%= form_for @post, url: {action: :create} do |f| %>   
    <div>   
      <h3>Add a Post</h3>   
    </div>   
    <div>   
      <p>   
        <%= "<div>#{@post.errors.full_messages.first}</div>".html_safe if @post.errors.any? %>   
      <div>   
          <label>Title</label>   
            <%= f.text_field :title %>   
      </div>   

      <div>   
           <label>Description</label>   
           <%= f.text_field :description %>   
      </div>   

      <div>   
         <label>Created_by</label>   
            <%= f.text_field :created_by %>   
      </div>   
       </p>   
    </div>   
    <div>   
      <%= link_to 'Back', form_create_post_index_path %>   
      <%= f.submit 'Create Post' %>   
    </div>   
  <% end %>   
</div>  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
form_create-0.0.1 app/views/form_create/posts/new.html.erb