RAILS_ROOT

Take your pick:

image = File.join(RAILS_ROOT, "public#{icon.public_filename}") image = File.expand_path('public' + icon.public_filename, RAILS_ROOT) image = File.join(RAILS_ROOT, 'public', icon.public_filename)

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

It means that RAILS_ROOT == 'script/../config/../config/..' It also implies that the current directory is almost certainly the same as RAILS_ROOT because '..' means the parent directory so any 'foo/..' means the foo subdirectory's parrent -- the current directory. You can generally remove such constructs (there are some oddities that can happen with symbolic links that you can likely ignore in this case).

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com