From ece498caf830c9132846e282a45ee23e7bcb4ff1 Mon Sep 17 00:00:00 2001 From: Jess Lee Date: Thu, 28 Mar 2019 17:42:43 -0400 Subject: [PATCH] add form validation so points cannot be nil (#2236) --- app/views/dashboards/following.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/dashboards/following.html.erb b/app/views/dashboards/following.html.erb index b8445289e..519c25aa9 100644 --- a/app/views/dashboards/following.html.erb +++ b/app/views/dashboards/following.html.erb @@ -1,8 +1,7 @@ <% title "Dashboard - DEV" %>
- <%= render 'actions' %> - + <%= render "actions" %>

Followed tags (<%= @user.following_tags_count %>)

Adjust Follow Weight to make a tag show up less or more in your feed (default 1.0)

@@ -22,7 +21,7 @@ <%= form_for(follow) do |f| %> <%= f.label(:points, "Follow Weight:") %> - <%= f.number_field(:points, step: :any) %> + <%= f.number_field(:points, step: :any, required: true) %> <%= f.submit "Submit" %> <% end %>