Manuel Wiedenmann wrote:
> in der README für attachment_fu findest du doch haufenweise beispiele:
> 
> Examples:
>      has_attachment :max_size => 1.kilobyte
>      has_attachment :size => 1.megabyte..2.megabytes
>      has_attachment :content_type => 'application/pdf'
>      has_attachment :content_type => ['application/pdf', 'application/
> msword', 'text/plain']
>      has_attachment :content_type => :image, :resize_to => [50,50]
>      has_attachment :content_type => ['application/
> pdf', :image], :resize_to => 'x50'
>      has_attachment :thumbnails => { :thumb => [50, 50], :geometry =>
> 'x50' }
>      has_attachment :storage => :file_system, :path_prefix => 'public/
> files'
>      has_attachment :storage => :file_system, :path_prefix => 'public/
> files',
>                     :content_type => :image, :resize_to =>
> [50,50], :partition => false
>      has_attachment :storage => :file_system, :path_prefix => 'public/
> files',
>                     :thumbnails => { :thumb => [50, 50], :geometry =>
> 'x50' }
>      has_attachment :storage => :s3
> 
> 
>      :storage          # Specifies the storage system to use..
>                        # Defaults to :db_file.  Options
> are :file_system, :db_file, and :s3.
> 
> also einfach in das model was ein attachment haben soll:
> 
>      has_attachment :content_type => 'text/plain'
> 
> gruß
> manuel
> 
> 
> 
> Am 01.04.2009 um 14:28 schrieb Dieter Scherthan:

Hallo Manuel,

für mich als Anfänger ist das nicht so einfach wie du das darstellst. 
Z.B. brauche ich diese Zwischentabelle? Wo gebe ich an, in welcher 
Tabelle/Feld die Datei letzten Endes gespeichert wird? Wie sieht der 
Link aus, mit dem ich die Datei wieder downloaden kann? Wie kann ich das 
in meinen bestehenden Controller/Modell einbinden? Desshalb bin ich auf 
der Suche nach einem entsprechenden Tutorial.
Vielleicht hast du ja die Muse, mir da was zu erstellen.

Gruß
Dieter
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an