search for: partitioned_path

Displaying 4 results from an estimated 4 matches for "partitioned_path".

2007 Sep 25
2
attachment_fu default path
Hi all. I''ve done a little google search, but doesn''t find anything (with "attachment_fu default path") that could help me in changing attachment_fu''s default path. My model: [audio.rb] has_attachment :max_size => 20.megabytes has_attachment :content_type => "audio/mpeg" has_attachment :storage => :file_system
2010 Jul 11
0
Attachement_fu error when updating existing photos
...hod in your model to customize the filename. # The optional thumbnail argument will output the thumbnail''s filename. def full_filename(thumbnail = nil) file_system_path = (thumbnail ? thumbnail_class : self).attachment_options[:path_prefix].to_s File.join(RAILS_ROOT, file_system_path, *partitioned_path(thumbnail_name_for(thumbnail))) end Anybody have an idea what I am doing wrong? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/J...
2007 Sep 18
2
Making attachment_fu polymorphic
I am working on a small model mixin called attachment_kung to make attachment_fu polymorphic, so you no longer need a different table and Model class for every associated attachment (Productimage, Ad_doc, etc). All you really need is one model and table to handel all your attachments - in some cases, anyway. I have the code working, but have run into one small hitch that I can''t seem to
2007 Dec 13
4
Attachment_fu problems on updates
...o_s #here is the join that is failing #logger.info "rails root:" + RAILS_ROOT => /Users/... #logger.info "file sys path" + file_system_path => public/photos #logger.info thumbnail => nothing show up here File.join(RAILS_ROOT, file_system_path, *partitioned_path(thumbnail_name_for(thumbnail))) end The photo model is polymorphic which is why it exists as a separate model. I have never had this problem before, but this is the first polymorphic relation that I have used to link to the uploaded images. Thanks for the help. -- Posted via http://www.ruby-for...