# Routing is not working

**URL:** <https://www.ruby-forum.com/t/routing-is-not-working/121971>\
**Category:** Rails\
**Created:** [December 3, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/routing-is-not-working/121971 "2007-12-03T14:59:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 3, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/routing-is-not-working/121971/1 "2007-12-03T14:59:02Z")

</div>

hi all ,

i want thats if i type http//localhost:3000 in my browser. it will  
redirect to controller account and action will be login

i write this code in routes.rb file

map.connect ‘\*anything’,:controller=\>‘account’,:action=\>‘login’

it showing again the same startup page to confirm the server is  
running

i also tried

map.connect ’ ',:controller=\>‘account’,:action=\>‘login’

but didn’t succeeded can any body help me out

thanks  
sachin

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 3, 2007, 3:13pm UTC](https://www.ruby-forum.com/t/routing-is-not-working/121971/2 "2007-12-03T15:13:44Z")

</div>

Hi,

> it showing again the same startup page to confirm the server is  
> running

have you tried doing as the routes.rb file says?

# You can have the root of your site routed by hooking up ‘’

# – just remember to delete public/index.html.

remobe the public/index.html file and you’ll probably have it running

regards,

javier ramirez

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 3, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/routing-is-not-working/121971/3 "2007-12-03T15:20:11Z")

</div>

thanks man its working thanks
