That should do the trick for you.
<%= text_field_tag 'bloodGroup', params[:bloodGroup] %>
See docs for text_field_tag
The reason the character works and the string (another answer) doesn't work:
foo = {hello: 'world'}
puts foo[:hello];
puts foo['hello']
puts foo['hello'.to_sym]
You can easily convert strings and characters to Ruby, but they are not equal.
source
share