Sha256: 4b67e2336fb2e19dd24ebdafaa6d1613b6ef4b3114d9d18fba758a2848addf55

Contents?: true

Size: 770 Bytes

Versions: 7

Compression:

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

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
form_creation-0.0.3 app/views/form_creation/posts/new.html.erb
form_creation-0.0.2 app/views/form_creation/posts/new.html.erb
form_sample-0.0.5 app/views/example/posts/new.html.erb
form_sample-0.0.4 app/views/example/posts/new.html.erb
form_sample-0.0.3 app/views/example/posts/new.html.erb
form_create-0.0.3 app/views/example/posts/new.html.erb
form_create-0.0.2 app/views/example/posts/new.html.erb