Using redirect_to to :create action
Posted
by ajmurmann
on Stack Overflow
See other posts from Stack Overflow
or by ajmurmann
Published on 2010-03-12T00:43:49Z
Indexed on
2010/03/12
0:47 UTC
Read the original article
Hit count: 248
ruby-on-rails
I am trying to redirect to the create method of another controller. However, I can't find a way to set the method to POST. This results in the index method to be called. Using :method => :post
just creates a new parameter, but doesn't change the http method.
Any ideas how to redirect to the create method?
© Stack Overflow or respective owner