Skip to content

Instantly share code, notes, and snippets.

View daluzluiz's full-sized avatar

Luiz da Luz daluzluiz

View GitHub Profile
<h2>Sign up</h2>
<div id="stripe_error" class="alert alert-error" style="display:none" >
</div>
<%= simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => {:class => 'card_form form-vertical' }) do |f| %>
<h3><%= params[:plan].titleize if params[:plan] %> Subscription Plan</h3>
<%= hidden_field_tag 'plan', params[:plan] %>
<%= f.error_notification %>
<%= f.input :f_name, :autofocus => true %>
<%= f.input :l_name %>
<%= f.input :email, :required => true %>