fixing redirect
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@21 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
c9a6c0dcee
commit
a527f40417
|
@ -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" }
|
||||
|
|
Reference in New Issue