I have a colour field in form, it saves the colour name as hex value. I want to display the colour name in index and show page. How to convert hex values into colour names? I use gem 'jquery-minicolors-rails'.
In form,
<%= f.color_field :syllab_color, :id => 'Color' %>
in index and show page,
<%= @syllab.syllab_color.to_s %>
Thanks.