Skip to content

Commit

Permalink
Enabled shuffle and #2 is closed now!
Browse files Browse the repository at this point in the history
  • Loading branch information
stanlylau committed Sep 22, 2015
1 parent 010f006 commit 790201c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/places_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def destroy
end

def pickforme
@places = Place.all
flash[:picked] = Place.new(name: 'Jade of India', location: 'Race Course Road')

flash[:picked] = Place.all.shuffle.first
redirect_to root_url
end

Expand Down

0 comments on commit 790201c

Please sign in to comment.