fixing redirect

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@21 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-11-12 05:38:13 +00:00
parent c9a6c0dcee
commit a527f40417
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class BeersController < ApplicationController
@beer.attributes = params[:beer] @beer.attributes = params[:beer]
if @beer.save if @beer.save
flash[:notice] = 'Beer was successfully updated.' 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 } format.xml { head :ok }
else else
format.html { render :action => "edit" } format.html { render :action => "edit" }