[Rails] Re: Showing Images from a file store
brez! !!
jbresnik at gmail.com
Fri Apr 14 06:31:45 GMT 2006
> That really worked.
good to hear..
>I did not knew that we could specify a controller
> name
> and the method name inside the view.
well what youre really specifying is a URL that is interpreted as that
method on that controller, i.e. the rails convention for URL mapping.
The browser then retrieves the img like a typical JPG. send_file returns
a byte stream [i.e. no HTTP headers, etc] which is subsequently
rendered.. It all pretty straightforward actually - it's probably worth
reading abt the HTTP 1.1 protocol if you found the previous few lines
compelling..
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list