Hi !
2005/10/21, Ben Luo <luoxiangxin@aim.com>:> <%= link_to "source code" "foo.tgz" %>
>
> but which directory I have to put the foo.tgz in ?
When you pass a string to link_to, it is relative to your application
base, which in turn is relative to RAILS_ROOT/public.
So, if your application resides at http://app.company.com/rails, and
you do link_to "code", "code/foo.tgz", you'll put the
file in
RAILS_ROOT/public/code, and the final URL will be
http://app.company.com/rails/code/foo.tgz
Bye !
François
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails