I use the following code in my view:
<%= collection_select(‘datedata’, ‘date’, @allDate, :id, :date) %>
It’s show me the date of all entries in the database (Dropdown menu).
Additional, I wrote a helper method “showDate” in the
application_helper.rb! How can I use this method in the
collection_select for every date entry?
thanks for your anwser!