Newbie: Replacing index.html in public folder

Hi,

Can anyone tell me how can I achieve this:
Say if I have a e-commerce site, I want to list all the products when
user type in www.mysite.com Not www.mysite.com/products

Please note there is no controller in the URL, how do I replace the
default Rails index.html and display my products page.

Hope my question makes sense.


Best regards,

Ming Ma

Look into routes, e.g. routes.rb. Off the top of my head I’d try
something
like:
map.connect ‘’, :controller => ‘products’, :action => 'list

Check out:
http://manuals.rubyonrails.com/read/chapter/65

Hope this helps.

  • Brian

Thanks for your help.

On 7/23/06, Brian H. [email protected] wrote:

Check out:

Hi,


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Best regards,

Ming Ma

Sigh… I hate it when I type “e.g.” when I meant “i.e.” - I’m usually
stickler for such things. :confused: