Urgent help with rails, htaccess and shared hosting

Hi, i’m trying to set up a rails project in a shared hosting (i’ve no
access to the vhost configuration).
Actually i’ve a project folder in httpdocs. And this is the .htaccess in
httpdocs

RewriteEngine On
RewriteRule ^$ /project/public/index.html [L]
RewriteCond %{REQUEST_URI} !^/project/public
RewriteRule ^(.)$ /project/public/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.
)$ project/public/dispatch.fcgi/$1 [QSA,L]

When i access to the domain it works quite fine, and also the db seems
to works. The only problem i’ve is that i use the resources methods to
create the urls. So i use for example login_account_url to generate the
url to the login page. But it generate an url like
http://www.domain.com/project/public/account/login” instead of
http://www.domain.com/account/login”. How can i fix this and set the
public folder as root (without using the apache vhost config)?
The problem is not just that “/projecy/public/” it’s ugly, it’s that it
doesn’t work if there is that :frowning:

Thanks