Displaying 1 result from an estimated 1 matches for "new_product_path".
Did you mean:
new_products_path
2013 Dec 12
2
JS response -pls help somebody
...mat => ''js''), :html
=>{:id=>"create_product_form" ,:multipart => true,:remote=>true} do |f|
%>
what i have to do is like when submiting form i have to redirect to new
page else want to execute js like following
def create
if @product.save
redirect_to new_product_path
else
respond_to do |format|
format.js
end
end
Here my issue i cant redirect_to new_products_path... what may be my
mistake ?? redirection is happening in console. but not not in ui.
whether is is because ajax call in form, how to redirect ??
--
Posted via http://www.ruby-forum.com/.
--
Y...