Images

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.

On 8/8/06, Pieter B. [email protected] wrote:


Rails mailing list
[email protected]
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 :slight_smile:

Daniel N wrote:

folder.
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 :slight_smile:
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs