Hi all, i am a beginner of ROR. please excuse me if i ask newbie questions. i use Netbeans 6 as my IDE. i keep some of my image files under public/ images/ my question is: in the controller the images files' path is "/public/images/", but in View the path becomes "/images/", why? Thanks.
on 2007-07-01 16:09
on 2007-07-01 17:51
on 2007-07-01 19:49
Thanks Philip for the reply. how to avoid hard-coding the path in controller? for example, i need to write something like this: if File.exist?("/public/images/abc.png") do some stuff here end Thanks.