Daniel N wrote:>
>
> On 8/8/06, *Pieter Botha* <ship@lantic.net
<mailto:ship@lantic.net>>
> wrote:
>
> hi all
>
> starting out building a new rails app, working with a designer who
> gives
> me templates in html format with images(logos etc.) in an images
> folder.
> need to convert these to rhtml. what is the best practice to deal
> with
> images, flash etc? where in the directory structure should i copy
> these
> media files and how do i reference them in the rhtml template file?
>
> ty.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org <mailto:Rails@lists.rubyonrails.org>
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
> These files generally belong in the public/images folder. Your public
> folder is what the rails app uses as the root document directory for
> the site.
> ie
> the absolute link /images would really point to public/images
>
> Hope that helps :)
ok thanks, it is working
say i have a controller called xxx. i then create a folder xxx under
public and copy images etc in there.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.10.7/411 - Release Date: 2006/08/07
>