From 4d07cf80faf2ce08a969f1d817200ec545da9c0a Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 16 Apr 2017 21:05:24 +1200 Subject: [PATCH] Editing title of photos --- app/views/photos/edit.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/photos/edit.html.haml b/app/views/photos/edit.html.haml index 5a43dd437..04068b570 100644 --- a/app/views/photos/edit.html.haml +++ b/app/views/photos/edit.html.haml @@ -1,2 +1,5 @@ - content_for :title, "Edit Photo" - += form_for(@photo) do |f| + = f.label :title + = f.text_field :title, placeholder: "title" + = f.submit