Sha256: 36e6b88778d6af43fd05a3ba5d94820106c1df4c1464d5845958a50f8b3a29ba

Contents?: true

Size: 773 Bytes

Versions: 7

Compression:

Stored size: 773 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', posts_path %>   
      <%= f.submit 'Update 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/edit.html.erb
form_creation-0.0.2 app/views/form_creation/posts/edit.html.erb
form_sample-0.0.5 app/views/example/posts/edit.html.erb
form_sample-0.0.4 app/views/example/posts/edit.html.erb
form_sample-0.0.3 app/views/example/posts/edit.html.erb
form_create-0.0.3 app/views/example/posts/edit.html.erb
form_create-0.0.2 app/views/example/posts/edit.html.erb