Created
October 3, 2010 23:17
-
-
Save jaimeiniesta/609042 to your computer and use it in GitHub Desktop.
This file contains 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
# Example on how to get the local file path for an attachment_fu attachment on a model | |
# (photos, in this example) | |
def attachment_fu_local_file_path | |
Rails.root+"/public/photos/"+("%08d" % id).scan(/..../).join('/')+"/"+filename | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment