Minor modifications to make locations validate name
Add button to delete a post
*Fix syntax error for delete button
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
Add button to delete a post
Fix syntax error
Nest categories in locations and let admins create
nests post.create under locations
Render errors if post form doesn not save
fixed type
validate location_id and backfill previous posts
Let Locations have many posts
Correct formatting for readability
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.