Sha256: 30dc50be7224fcc6734233648839f8f16d8ecb95d9c4d3824cd674bcf181c173

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 Bytes

Contents

<div class="container">   
  <%= form_for @post, url: {action: :update} do |f| %>   
    <div>   
      <h3>Update 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 'Update Post' %>   
    </div>   
  <% end %>   
</div>  

Version data entries

2 entries across 2 versions & 1 rubygems

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