This repository has been archived by the owner on Mar 13, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52cbe5b
commit 7d67b44
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,11 +1,9 @@ | |||
Here's your headline: | = "\"" + @headline.text.chomp!("\s") + "\"" | ||
.clear | .clear | ||
= @headline.text | Which TechCrunch scribe wrote that headline? | ||
.clear | |||
What's your hunch? | |||
.clear | .clear | ||
= form_for @guess, :as => :guess, :url => { :action => :create } do |f| | = form_for @guess, :as => :guess, :url => { :action => :create } do |f| | ||
= f.hidden_field(:headline_id, { :value => @headline.id }) | = f.hidden_field(:headline_id, { :value => @headline.id }) | ||
= f.collection_select(:author_id, Author.all, :id, :name) | = f.collection_select(:author_id, Author.all, :id, :name) | ||
.clear | .clear | ||
= f.submit "Crunch that hunch!" | = f.submit "Crunch your hunch!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,10 @@ | |||
%embed{ :src => "/sounds/sadlaura.wav", :autostart => "true", :loop => "false", :width => "1", :height => "0" } | %embed{ :src => "/sounds/sadlaura.wav", :autostart => "true", :loop => "false", :width => "1", :height => "0" } | ||
Nooooooo! Laura is sad. | Nooooooo! Wrong answers make Laura sad. | ||
.clear | .clear | ||
%img{ :src => "/images/laura.jpg" } | %img{ :src => "/images/laura.jpg" } | ||
.clear | .clear | ||
%a{ :href => root_path } | %a{ :href => root_path } | ||
Try another one | Try another one | ||
.clear | |||
%a{ :href => "javascript:javascript:history.go(-1)" } | |||
Try again |