Skip to content

Instantly share code, notes, and snippets.

@swombat swombat/new.html.erb
Created Jan 25, 2011

Embed
What would you like to do?
<%= 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
You can’t perform that action at this time.