Ich versuche gerade mit Paperclip ein Profil Foto upload hinzubekommen,
irgendwie scheint auch erstmal alles zu klappen, aber auf Show Seite
werden nur Platzhalter angezeigt
Was habe ich getan. Erstmal habe ich script/generate paperclip newsteam
photo (wie in Railscast 134 beschrieben)
Aber beim ersten Speichern des Fotos bekomme ich das hier in den Logs
anzeigt. Logischerweise bekomme ich dann in meiner Übersicht auch keine
Fotos anzeigt… denn der file_name ist NULL -
Newsteam Create (1.2ms) INSERT INTO newsteams
(updated_at
,
photo_file_name
, photo_file_size
, Beschreibung
,
photo_updated_at
, ort
, agb
, photo_content_type
, nachname
,
vorname
, Foto
, created_at
) VALUES(‘2009-05-18 12:29:57’, NULL,
NULL, NULL, NULL, ‘freyburg’, NULL, NULL, ‘Schröder’, ‘Mario’, NULL,
‘2009-05-18 12:29:57’)
[paperclip] Saving attachments.
[paperclip] Saving files for photo
[paperclip] Deleting files for photo
[paperclip] Writing files for photo
Rendering template within layouts/anmeldung
Rendering newsteams/show
Wo liegt hier mein Fehler?
Mario
–
Mario Schröder | http://www.ironschroedi.com/de/
Office: +49 361 2152062
Phone: +49 34464 62301 Cell: +49 163 27 09 807
Willkommen bei XING! | XING