Permalink
Browse files

go back on appearance change and forget postcode

  • Loading branch information...
1 parent d9b2d72 commit 8d7e1e184ab1c0f18d299d225ff3e449a0316aee @stefl committed Jun 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.rb
View
4 app.rb
@@ -80,13 +80,13 @@ class CostSavingExercise < Sinatra::Base
get "/forget_postcode" do
session[:postcode] = nil
flash[:errors] = "Your postcode has been forgotten"
- redirect "/"
+ back
end
post "/appearance" do
session[:appearance] = params[:appearance]
flash[:errors] = "Your new display style"
- redirect "/"
+ back
end
post "/find_by_postcode" do

0 comments on commit 8d7e1e1

Please sign in to comment.