# Need help in Routing

**URL:** <https://www.ruby-forum.com/t/need-help-in-routing/92220>\
**Category:** Rails\
**Created:** [April 17, 2007, 7:16am UTC](https://www.ruby-forum.com/t/need-help-in-routing/92220 "2007-04-17T07:16:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thameem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@thameem](https://www.ruby-forum.com/u/thameem)\
**Post date:** [April 17, 2007, 7:16am UTC](https://www.ruby-forum.com/t/need-help-in-routing/92220/1 "2007-04-17T07:16:01Z")

</div>

hi all,

i have 2 controllers:

```
  1) Login
  2) admin

```

When i am logging in my application i want to navigate it into admin  
controller,  
Can anybody here help me…,??

---

<div class="post-metadata">

**Author:** ![thameem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@thameem](https://www.ruby-forum.com/u/thameem)\
**Post date:** [April 17, 2007, 7:23am UTC](https://www.ruby-forum.com/t/need-help-in-routing/92220/2 "2007-04-17T07:23:53Z")

</div>

Thanks all i have found out the solution  
we can use

redirect\_to :controller =\> “controllername”, :action =\> “action”
