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?
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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.