Sha256: 96cde211e1742b39737f7f38fdbffe9ed6b472deaecec3bc41c15a8d838a5807
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
<div class="container post"> <%= form_for @post, url: {action: :update} do |f| %> <div> <h3>Update Post</h3> </div> <div> <p> <%= "<div>#{@post.errors.full_messages.first}</div>".html_safe if @post.errors.any? %> <div class="form-group"> <label>Title</label> <%= f.text_field :title, class: "form-control" %> </div> <div class="form-group"> <label>Description</label> <%= f.text_area :description, class: "form-control", rows: "5", cols: "10", style: "resize:none;" %> </div> <div class="form-group"> <label>Created_by</label> <%= f.text_field :created_by, class: "form-control" %> </div> </p> </div> <div class="row"> <div class="col-md-8"><%= link_to 'Back', posts_path, class: "btn btn-info" %></div> <div class="col-md-4"><%= f.submit 'Update Post', class: "btn btn-success" %></div> </div> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
form_creation-0.0.5 | app/views/form_creation/posts/edit.html.erb |
form_creation-0.0.4 | app/views/form_creation/posts/edit.html.erb |