module MessagesHelper

  def recipients_options
    s = ''
    users = User.all + BizUser.all; users.each do |user|
      s << "<option value='#{user.id}'
data-img-src='#{attachment_url(@user, user.email, :profile_avatar,
:fill, 50, 50)}'>#{user.username}</option>"
    end
    s.html_safe
  end
end

How would I pass if nil to the attachment_url for user :profile_avatar?
when the image isn't available.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e978a8630251bc7010ed977eed6af7ff%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to