From 7a952da378a944771f66d37072552f37a966f1d1 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 4 Sep 2014 13:02:09 +0300 Subject: [PATCH] Display the picture field as mandatory --- app/views/devise/registrations/edit.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/registrations/edit.html.slim b/app/views/devise/registrations/edit.html.slim index 0de96c2..7158882 100644 --- a/app/views/devise/registrations/edit.html.slim +++ b/app/views/devise/registrations/edit.html.slim @@ -5,7 +5,7 @@ h2.entry-title = t :speaker_profile = f.error_notification = f.simple_fields_for :speaker_profile do |ff| - = ff.input :picture, as: :image_preview, input_html: {preview_version: :thumb} + = ff.input :picture, as: :image_preview, input_html: {preview_version: :thumb}, required: true = ff.input :first_name, autofocus: true = ff.input :last_name = ff.input :public_email