def new
<%= form.label :name, "Name: " %>
Now I have filled in the form the name “roelof”
How can I later check if there is a member with the name “roelof”
or can I do @member.name = “roelof”
To test if a particular member (in @member) has that name then you
would have to use
if @member.name == “reolof”
But if you mean after you have saved it to the database you want to
know if there is a member with that name then you can see if
Member.where(name: ‘Reolof’')
returns any records.