Skip to content

Commit

Permalink
refactored the answers to the view
Browse files Browse the repository at this point in the history
  • Loading branch information
Erreon committed Dec 29, 2010
1 parent 5a8845b commit 8e588c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions freeze.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

rescue NoMethodError
if place.downcase == "hell"
@answer = "Probably not, but if the Cowboys won today... Yes and there is snow too!"
erb :weather
@hell = "Probably not, but if the Cowboys won today... Yes and there is snow too!"
else
flash[:warning] = "Either this place doesn't exist or we don't have access to weather info there. Try searching for a nearby town or zipcode."
redirect '/'
Expand All @@ -31,4 +30,4 @@

not_found do
redirect '/'
end
end
2 changes: 0 additions & 2 deletions public/application.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<script>
$(function() {
$( "#place" ).autocomplete({
source: function( request, response ) {
Expand Down Expand Up @@ -37,4 +36,3 @@ $(function() {
}
});
});
</script>

0 comments on commit 8e588c8

Please sign in to comment.