Created
January 25, 2011 17:31
-
-
Save swombat/795268 to your computer and use it in GitHub Desktop.
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
<%= form_for @email_subscription do |f| -%> | |
<%= f.error_messages :header_message => "Can't subscribe", :message => "This went wrong:" %> | |
<%= f.label :email %> | |
<%= f.text_field :email %> | |
<%= f.label "Your time zone", :for => :time_zone_city %> | |
<%= f.time_zone_select :time_zone_city %> | |
<%= f.label "At what time would you like your daily email?", :for => :hour %> | |
<%= f.select :hour, [*0..23].collect { |i| ["#{"%02d" % i}:00", i] } %> | |
<%= submit_tag "Send confirmation email" %> | |
<% end -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment