use the name routing idea

master
Andrew Coleman 2009-03-21 22:00:17 -05:00
parent 951965f502
commit 52515d65ee
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Photos < Application
raise NotFound unless @photo
if @photo.destroy
if @photo.album
redirect url(:album, @photo.album)
redirect url(:album, @photo.album.name.gsub(/ /, '_'))
else
redirect url(:photos)
end