Created
April 10, 2013 18:24
-
-
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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