我有一個名爲「products_controllers.rb」有這種方法控制:重定向到一個特定的視圖從方法控制
def create
...
...
respond_to do |format|
if @product.save
???????
else
format.html { render :action => "new" }
format.xml { render :xml => @product.errors, :status => :unprocessable_entity }
end
end
,只要產品保存我想它重定向到所謂的「供應商的特定視圖「,這屬於產品意見,我該怎麼做? 在此先感謝!