In my application all users have the ability to upload a profile picture
through a file field but it is not compulsory.
On my index page it displays all users along with their profile pictures
but not all users have a profile picture and therefore some users have
no image at all.
How would I go about getting a generic image to display for the rest of
I have the following section in the index:
<% for user in @users %>
:width => 50 %>
<% end %>
For the following line I want to do something like this:
If user has photo
50, :width => 50 %>
display this photo
How would I go about doing this?