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.
Look into routes, e.g. routes.rb. Off the top of my head I’d try
map.connect ‘’, :controller => ‘products’, :action => 'list
Hope this helps.
Thanks for your help.
On 7/23/06, Brian H. [email protected] wrote:
Rails mailing list
Sigh… I hate it when I type “e.g.” when I meant “i.e.” - I’m usually
stickler for such things.