I have my app up and running at www.domainname.com/controller/ … but
need to get it set up at just www.domainname.com
I see that by default, rails is loading the pre-made index file in the
/public dir. How can I override this without changing any directories
around in my app?
Thanks!
-stirman
Check config/routes.rb
There’s a commented line in there that shows how to do this.
–
– Tom M.
Hey,
First off, you need to remove the public/index.html file.
Then in config/routes.rb
map.connect ‘’, :controller => ‘your_main_controller’, :action =>
‘probably_index’
Note, the first arg to connect is a set of empty quotes.
Regards,
Trevor
Trevor S.
http://somethinglearned.com