Restful Link_to

Not sure if I’m giving you the right answer but according to this little chart

orders_url
/posts
GET
index
orders_url
/posts
POST
create
order_url
/posts/:id
GET
show
order_url
/posts/:id
PUT
update
order_url
/posts/:id
DELETE
destroy
new_order_url
/posts/new
GET
new
edit_order_url
/posts/:id;edit
GET
edit
it looks like you should be doing a GET to new.
At least that is how I’ve found it to work new goes into create. No it’s not the best explanation.
Hope it helps.

Stuart

Hello Dark

it looks like you should be doing a GET to new.

At least that is how I've found it to work new goes into create. No
it's
not the best explanation.

don't really understand your explanation.:frowning:
And i don't want to do a Get but a POST with a link_to

Okay, here is the link to what I posted:

http://david.goodlad.ca/articles/2006/08/02/simply_restful-in-rails-core

It will help you understand the routes better.

Stuart