I have a folder called “admin” to hold all of the administrator’s files.
If I wanted to check if a file is inside the “/admin” folder (e.g.
/admin/tasks/list.rhtml), how would I do it?
On Nov 16, 2007, at 12:15 AM, Bob S. wrote:
I have a folder called “admin” to hold all of the administrator’s
files.
If I wanted to check if a file is inside the “/admin” folder (e.g.
/admin/tasks/list.rhtml), how would I do it?
Look up the Ruby command File.exist?
– gw (www.railsdev.ws)