app/uploaders/picture_uploader.rb
# Provide a default URL as a default if there hasn't been a file uploaded:
Provide a default URL as a default if there hasn't been a file uploaded.
Provide a default URL as a default if there hasn ' t been a file uploaded .
def default_url
     "/images/fallback/" + [version_name, "Default.jpg"].compact.join('_')
   end
def default_url "/images/fallback/" + [ version_name , "Default.jpg" ] . compact . join ( '_' ) end
Provide a default URL as a default if there hasn't been a file uploaded:
Provide a default URL as a default if there hasn ' t been a file uploaded :
#   # For Rails 3.1+ asset pipeline compatibility: #   # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) #Fallback image to Default (from placeholder)