<% for room in @rooms %><%= room.city %> <% end %>
consider the above code… Is there an easy way in rails to get only the
unique values, not the doubles? Since, for instance, Amsterdam (my city
of habitat) will be returned about a thousend times or so, I want to
make a list of cities that have rooms available.
I know how to code a function for this, I was just wondering about
peoples thoughts on this (Am an absolute beginner myself, though been
coding other languages for years)
Thanks in advance!