I'm using Rails 3 with carrierwave gem.
I managed to removed the avatar image from my user model like this:
@user.remove_photo!
and it works perfectly. However, I want to set the picture url for that user back to the default_url (which is the image that every user has until they upload one).
Any ideas how?
--
Image display code:
<%= image_tag(@user.photo.send(:layout).url, :alt => @user.full_name, :class => 'photo large') %>
default_url code:
def default_url
"default_photo.jpg"
end