From 6e708dec186edc696de1c2988f7b94ce5a664d16 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 19 Aug 2019 19:49:31 -0500 Subject: [PATCH] /artists/new: fix artist name input box sizing. In production the name input is really big because the artist name column in the production db is `text` rather than `character varying`, and simpleform treats text columns as textbox inputs. --- app/views/artists/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/artists/_form.html.erb b/app/views/artists/_form.html.erb index c9d8c4376..73bc1c70c 100644 --- a/app/views/artists/_form.html.erb +++ b/app/views/artists/_form.html.erb @@ -1,8 +1,8 @@ <%= simple_form_for(@artist) do |f| %> <% if @artist.new_record? %> - <%= f.input :name, input_html: { data: { autocomplete: "tag" } } %> + <%= f.input :name, as: :string, input_html: { data: { autocomplete: "tag" } } %> <% elsif CurrentUser.user.is_builder? %> - <%= f.input :name, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this artist entry and its wiki page" %> + <%= f.input :name, as: :string, input_html: { data: { autocomplete: "tag" } }, hint: "Change to rename this artist entry and its wiki page" %> <% else %>

<%= @artist.name %>

<% end %>