Sha256: b85f32c5dc3b29666cd956374c491acec7fda7864c50b4611a578e18a8c6d1c2

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 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', post_index_path %>   
      <%= f.submit 'Create Post' %>   
    </div>   
  <% end %>   
</div>  

Version data entries

2 entries across 2 versions & 1 rubygems

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