Skip to content

Commit ffafa01

Browse files
committed
Make the bookmark title field length consistent with the model
The model specifies a max length of 160 for the title column, but the form template specified a max length of 100 for the title field. Indeed, if you look in db/schema.rb you'll find: t.string "title", limit: 160, null: false
1 parent 73ecdfa commit ffafa01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/bookmarks/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
%p
44
= form.label :title, "Sujet du lien"
5-
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 100
5+
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 160
66
%p
77
= form.label :link, "Lien à partager"
88
= form.text_field :link, autocomplete: 'off', required: 'required', spellcheck: 'false', maxlength: 1024

0 commit comments

Comments
 (0)