Skip to content

Commit

Permalink
Allow price to be kept after a validation fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pezholio committed Apr 14, 2016
1 parent 04aed5f commit 233032b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/devise/registrations/_member_details.html.erb
Expand Up @@ -148,7 +148,7 @@
<div class="control-group">
<%= f.label :subscription_amount, :class => 'control-label' %>
<div class="controls">
£ <%= f.select :subscription_amount, options_for_select(Member.subscription_options, Member.default_subscription_option) %>
£ <%= f.select :subscription_amount, options_for_select(Member.subscription_options, params[:subscription_amount] || Member.default_subscription_option) %>
<span class="help-inline">*</span>
</div>
</div>
Expand Down

0 comments on commit 233032b

Please sign in to comment.