Routing Issue

Hi

While I try to create a form with named routes:

<% form_for @post,:url=>admin_post_path(@post) do |f| -%>

The form action returns "/admin/post.1", as I expect it to be "/admin/
post/1".

Is this a bug or I configured it wrongly?

Appreciate your advice

What do your routes look like?

If admin is a namespace, you can simply do it like this:

<%= form_for [ :admin, @post ] do |f| -%>

What do your routes look like?

If admin is a namespace, you can simply do it like this:

<%= form_for [ :admin, @post ] do |f| -%>