# Form\_tag routing error in \>= 1.2.2?

**URL:** <https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993>\
**Category:** Rails\
**Created:** [June 28, 2007, 6:22am UTC](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993 "2007-06-28T06:22:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjnkns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Post date:** [June 28, 2007, 6:22am UTC](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993/1 "2007-06-28T06:22:10Z")

</div>

I have a simple feedback form handled by feedback\_controller. For  
methods I use “new” for the form and “create” to handle the feedback  
submitted.

Routes are simple enough:

map.resources :feedback

What’s odd is this works fine in Rails 1.2.1:

\<% form\_tag(feedback\_path) do -%\>

But in Rails 1.2.2 and 1.2.3 I get:

feedback\_url failed to generate from {:action=\>“show”,  
:controller=\>“feedback”} - you may have ambiguous routes, or you may  
need to supply additional parameters for this route. content\_url has  
the following required parameters: [“feedback”, :id] - are they all  
satisifed?

Any idea why?

Thanks!!

---

<div class="post-metadata">

**Author:** ![cjnkns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Post date:** [June 28, 2007, 11:42am UTC](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993/2 "2007-06-28T11:42:56Z")

</div>

in resource routes, you normally have a pluralized model name:

map.resource :feedbacks

the you get:

1. feedbacks\_path

# =\> GET/POST /feedbacks/

```
  (for getting a list of items or creating a new one.)

```

1. feedback\_path(@feedback)  
#=\> GET/PUT/DELETE /feedbacks/ID\_OF\_GIVEN\_FEEDBACK  
(for getting/updateing/deleting a specific record with a given  
ID)  
see the difference?  
feedback\_path ↔ feedbackS\_path

try this  
\<%= form\_tag(feedbacks\_path) %\>

But also i think as your resource name is not pluralized something  
gets mixed up somewhere along the way of these routing helpers, and  
the error could still be there.  
That it worked in 1.2.1 and not in 1.2.3 may be due to some code  
changes in this area …  
try pluralizing your resource name in routes.rb too.

On 28 Jun., 06:22, Carl J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![cjnkns](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c5a1d2/32.png) [@cjnkns](https://www.ruby-forum.com/u/cjnkns)\
**Post date:** [June 28, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/form-tag-routing-error-in-1-2-2/107993/3 "2007-06-28T20:37:04Z")

</div>

Thorsten wrote:

> in resource routes, you normally have a pluralized model name:
> 
> map.resource :feedbacks
> 
> the you get:
> 
> 1. feedbacks\_path
> 
> # =\> GET/POST /feedbacks/
> 
> ```
> (for getting a list of items or creating a new one.)
> 
> ```

Ah OK. Yeah, I was trying to make my English too proper! I changed the  
naming to “feedbacks” in all the relevant places and it is working now.

Now I just need to figure out how to make the URL a little prettier  
(/feedback/new instead of /feedbacks/new)…
