Fix accidental deletion of post list iterator

 Restored:
 <% current_user.posts.each do |post| %>

Since I was there, fixed the validation for locations, changed :location
to :name
Enable user to delete posts

Renamed the "edit" link to "edit or delete" in index and show
Added delete button to post update form in edit
Enable user to delete posts

Renamed the "edit" link to "edit or delete" in index and show
Added delete button to post update form in edit
Modify posts before_action to handle destroy

Extracted a method into user model to determine whether a user was an
admin or the post's owner

Modified the can_user_modify... method  to use that in determining whether or
not the current user can delete the post.
Start eliminating before action in posts controller

Saving to try a new fetch and rebase because I'm getting odd errors that
aren't happening for team mates.
Fix accidental deletion of post list iterator

 Restored:
 <% current_user.posts.each do |post| %>

Since I was there, fixed the validation for locations, changed :location
to :name
Fix accidental deletion of post list iterator

 Restored:
 <% current_user.posts.each do |post| %>

Since I was there, fixed the validation for locations, changed :location
to :name
Enable user to delete posts

Renamed the "edit" link to "edit or delete" in index and show
Added delete button to post update form in edit
Enable user to delete posts

Renamed the "edit" link to "edit or delete" in index and show
Added delete button to post update form in edit
Modify posts before_action to handle destroy

Extracted a method into user model to determine whether a user was an
admin or the post's owner

Modified the can_user_modify... method  to use that in determining whether or
not the current user can delete the post.
Start eliminating before action in posts controller

Saving to try a new fetch and rebase because I'm getting odd errors that
aren't happening for team mates.
Remove before action from posts

Added allowed_to_modify_post? and post_owner?(post) to user model,
removed ensure_user_can_modify_post.

Fixed redirect bug in locations controller, now redirects to :locations
Remove before action from posts

Added allowed_to_modify_post? and post_owner?(post) to user model,
removed ensure_user_can_modify_post.

Fixed redirect bug in locations controller, now redirects to :locations

Changed link_to delete to button_to delete for UI consistency in
posts show.

Removed vertical spaces above "if" statements, unless it followed an
end.
Merge branch 'lea-user-delete-posts'

* lea-user-delete-posts:
  Remove before action from posts
  Remove before action from posts
  Start eliminating before action in posts controller
  Modify posts before_action to handle destroy
  Enable user to delete posts
  Enable user to delete posts
  Fix accidental deletion of post list iterator

Conflicts:
	app/controllers/posts_controller.rb
	app/models/user.rb
	app/views/posts/index.html.erb
	app/views/posts/show.html.erb