Hi Sebi,
Da musst ein return dranhängen
send_file ..... and return
In der API ist auch noch der Hinweis auf X-Sendfile.
:x_sendfile - uses X-Sendfile to send the file when set to true. This
is currently only available with Lighttpd/Apache2 and specific modules
installed and activated. Since this uses the web server to send the
file, this may lower memory consumption on your server and it will not
block your application for further requests. See blog.lighttpd.net/
articles/2006/07/02/x-sendfile and tn123.ath.cx/mod_xsendfile/ for
details. Defaults to false.
ciao, tom
Am 04.02.2009 um 10:40 schrieb Sebastian Kranz:
Hi,
kann mir jemand sagen, wie ich Bilder oder andere Daten, die nicht im
Public-Verzeichnis liegen, in einer View anzeigen kann?
Bei Benutzung von send_file erhalte ich unter normaler Verwendung von
REST die Fehlermeldung:
Can only render or redirect once per action
Ich möchte nicht nur ein einzelnes Bild in einer leeren Seite
anzeigen,
sondern das normale Layout verwenden und z.B. alle Bilder aus einer
Galerie lediglich für registrierte Benutzer darstellen.
--
Thomas R. "TomK32" Koll <> http://ananasblau.com
just a geek trying to change the world
http://github.com/TomK32
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug