From a527f40417cdc060a94cee1f384bbcd98d4f7875 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 12 Nov 2007 05:38:13 +0000 Subject: [PATCH] fixing redirect git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@21 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/controllers/beers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/beers_controller.rb b/app/controllers/beers_controller.rb index a14d272..bd7313d 100644 --- a/app/controllers/beers_controller.rb +++ b/app/controllers/beers_controller.rb @@ -59,7 +59,7 @@ class BeersController < ApplicationController @beer.attributes = params[:beer] if @beer.save flash[:notice] = 'Beer was successfully updated.' - format.html { redirect_to beer_url(@beer) } + format.html { redirect_to beer_url(@beer.page.title_for_url) } format.xml { head :ok } else format.html { render :action => "edit" }