# routing is not working

**URL:** <https://discuss.rubyonrails.org/t/routing-is-not-working/21173>\
**Category:** rubyonrails-talk\
**Created:** [December 3, 2007, 1:57pm UTC](https://discuss.rubyonrails.org/t/routing-is-not-working/21173 "2007-12-03T13:57:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin238](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sachin238](https://discuss.rubyonrails.org/u/sachin238)\
**Post date:** [December 3, 2007, 1:57pm UTC](https://discuss.rubyonrails.org/t/routing-is-not-working/21173/1 "2007-12-03T13:57:48Z")

</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:** ![javier\_ramirez](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@javier\_ramirez](https://discuss.rubyonrails.org/u/javier_ramirez)\
**Post date:** [December 3, 2007, 2:12pm UTC](https://discuss.rubyonrails.org/t/routing-is-not-working/21173/2 "2007-12-03T14:12:42Z")

</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?

&nbsp;&nbsp;# You can have the root of your site routed by hooking up '' &nbsp;&nbsp;# -- 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:** ![sachin238](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sachin238](https://discuss.rubyonrails.org/u/sachin238)\
**Post date:** [December 3, 2007, 2:19pm UTC](https://discuss.rubyonrails.org/t/routing-is-not-working/21173/3 "2007-12-03T14:19:32Z")

</div>

thanks man its working thanks
