Google isn’t helping me out on this one, so I have to ask: is there
a convenient way to get the current project root in a template. I
have a template with an OBJECT tag and an embedded QT movie that
needs the full path to an asset. Basically, its the same motivation
as link_to, but I just need root path by itself without the link tags
around it so I can use it in PARAM tags within the OBJECT tag.
Thanks,
Steve
Google isn’t helping me out on this one, so I have to ask: is there a
convenient way to get the current project root in a template. I have a
template with an OBJECT tag and an embedded QT movie that needs the full path
to an asset. Basically, its the same motivation as link_to, but I just need
root path by itself without the link tags around it so I can use it in PARAM
tags within the OBJECT tag.
RAILS_ROOT?
maybe with params[:controller] and params[:action] or something?