Am 04.02.2009 um 13:22 schrieb Sebastian Kranz:
format.jpg { send_file @person.photo_url, :type => 'image/ jpg', :disposition => 'inline' }Verwende derzeit Paperclip. Mit 'format' schaffe ich es doch lediglich durch http://url.tld/people/1.jpg das Bild des Benutzers anzusehen?
Glaub mir, genau das willst du. Verlink die Bilder in deiner index view. Geschützt sind die Bilder dann genauso wie es das User Profil ist.
Es steht dabei aber nicht in der Html-View. Ich will die Bilder ja nicht "nur" herunterladen, sondern in einer Gallerie/Profil anzeigen (ohne, dass ein unangemeldeter Benutzer darauf Zugriff hat).
deutsch: Galerie englisch: gallery ciao, tom -- Thomas R. "TomK32" Koll || http://tomk32.de || http://ananasblau.com just a geek trying to change the world Skype: TomK32 || Mail: [email protected] http://flickr.com/people/tomk32 _______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/listinfo/rubyonrails-ug
