I want to add the user's avatar next to the name in options:
<%= f.select(:user_id,
@users.map{|s|[s.lastname+', '+s.firstname, s.id]},
{},
:class => "ui fluid dropdown"
) %>
And If possible, I want also to enter some html in it:
<%= @user.avatar.blank? ?
image_tag("no-image.png", alt: "noimage", class: "ui small rounded image") :
image_tag(@user.avatar.url(:thumb), alt: "user-image", class: "ui small rounded image")
%>
How is it possible in Rails 4?
EDIT: Another thing I want to do is to display a circle with a color on the front of the text. Let's say I want a green dot in front of active users and a red on inactive ones. This is going to be implemented with CSS and I've seen it a lot of times in various websites, but I am not sure how to do it.