18 Jul 16:56
before_thumbnail_saved - attachment_fu helper does not work
From: Anil Wadghule <anildigital@...>
Subject: before_thumbnail_saved - attachment_fu helper does not work
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-18 14:58:04 GMT
Subject: before_thumbnail_saved - attachment_fu helper does not work
Newsgroups: gmane.comp.lang.ruby.rails
Date: 2008-07-18 14:58:04 GMT
Hi,
I have added these lines in my model, but it does not work.
before_thumbnail_saved do |record, thumbnail|
thumbnail.update_attribute(:filename, thumbnail.public_filename(thumbnail.thumbnail.to_sym))
end
It keeps the filenames as if they were not touched.
Basically I want to store the full image path in the database table.
--
Anil
I have added these lines in my model, but it does not work.
before_thumbnail_saved do |record, thumbnail|
thumbnail.update_attribute(:filename, thumbnail.public_filename(thumbnail.thumbnail.to_sym))
end
It keeps the filenames as if they were not touched.
Basically I want to store the full image path in the database table.
--
Anil
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
RSS Feed