Skip to content

Instantly share code, notes, and snippets.

@swombat
Created January 25, 2011 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swombat/795268 to your computer and use it in GitHub Desktop.
Save swombat/795268 to your computer and use it in GitHub Desktop.
<%= 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