# Routing problem?

**URL:** <https://www.ruby-forum.com/t/routing-problem/131694>\
**Category:** Rails\
**Created:** [March 12, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/routing-problem/131694 "2008-03-12T15:49:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [March 12, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/routing-problem/131694/1 "2008-03-12T15:49:48Z")

</div>

I have a form and always seem to be sent to the wrong controller-  
method.

Can anyone help me with this pastie (controller-, view- and routing-  
code present in pastie)?

[http://rafb.net/p/tEvsAB49.html](http://rafb.net/p/tEvsAB49.html)

Saludos  
Javier

---

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [March 12, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/routing-problem/131694/2 "2008-03-12T16:54:23Z")

</div>

Javier\_CH wrote:

> 

My guess (and that’s all it is, a guess) is that you’ve got another  
route that’s conflicting somehow with this one. There’s two things I  
would check next. 1) When viewing the form in the browser, have the  
browser show you the HTML source of the page and confirm that the path  
is set to what you think it should be. 2) check your development log  
right after submitting the form and check what the incoming params hash  
is set to for clues.

–  
[http://www.5valleys.com/](http://www.5valleys.com/)  
[http://www.workingwithrails.com/person/8078](http://www.workingwithrails.com/person/8078)

---

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [March 12, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/routing-problem/131694/3 "2008-03-12T17:21:36Z")

</div>

SOLVED:

I used the following line to open the form (forgot :url =\>…) and now  
it works:

\<% form\_for(@my\_user, :url =\>  
update\_email\_user\_path(@my\_user.id), :html =\> {:method =\> :put }) do |  
f| -%\>
