Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Created April 10, 2013 18:24
Show Gist options
  • Save px-amaac/5357160 to your computer and use it in GitHub Desktop.
Save px-amaac/5357160 to your computer and use it in GitHub Desktop.
I am not understanding the :url and :path. Where is the root of these paths. ? Clearly for path it is rails root. What do both of these do?? is the url just what is displayed and the path is where they are actually stored?
has_attached_file :image, :styles => { :small => "480x320>", :large => "920x640>"},
:url => '/assets/images/:class/:id/:style.:extension',
:path => '/:rails_root/assets/images/:class/:id/:style.:extension'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment