Josh Kieschnick
2006-Sep-01 15:31 UTC
setting different file_column options for certain files
i''ve used file_column for several projects and love it. now i need to build an interface so the user can decide what to do with with a file when it''s being uploaded. if it''s just a file like a pdf, then just upload it. if it''s an image, let the user select what sizes he/she wants. i''ve been reading about single table inheritance and wondering if that might be a good solution. so you could create subclasses for the model and have each one contain their own file_column options. if i did it that way, i wouldn''t be sure how to specify what subclass handles the file when it''s uploaded. or maybe there''s another way to handle it altogether. i''m not sure, but i would like to get any input anyone has. -- 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-/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 -~----------~----~----~----~------~----~------~--~---