[Rails] any controller as start page

Bruno Mattarollo bmatt at mac.com
Sun Nov 7 13:15:26 GMT 2004


Hello,

In your rails app directory, under the "public/" dir, there is an 
.htaccess file, one line looks like:

# Enable this rewrite rule to point to the controller/action that 
should serve root.
# RewriteRule ^$ /controller/action [R]

Uncomment that and change the "controller/action" string to whatever 
you want as the root (default).

Cheers

/B

On 07/11/2004, at 10:13 PM, balcersk wrote:

> When I start my rails page it pointing me to _doc/index.html at 
> default. How to configure apache
> to point me to the controller and action i want, so how to make any 
> controler and action to be default
> page for my domain?
>
> I'am beginner in apache, so exuse me if this question is silly.
> Jacek
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-- 
Bruno Mattarollo <bmatt at mac.com>
Currently in: Sydney, Australia
[ http://pokies.typepad.com/virtual_possum/ ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part
Url : http://one.textdrive.com/pipermail/rails/attachments/20041108/47b25381/PGP.bin


More information about the Rails mailing list