Skip to content

Commit

Permalink
Fix sign up form (#1315)
Browse files Browse the repository at this point in the history
* remove unnecessary param

* remove error placeholders because we use bootstrap form for error rendering
  • Loading branch information
kasugaijin authored Jan 6, 2025
1 parent 437fe9d commit 55d7f93
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,7 @@
<h1 class="mb-1 fw-bold">Sign up</h1>
</div>

<div>
<% if flash[:alert] %>
<div class="alert alert-danger" role="alert">
<%= alert %>
</div>
<% end%>
</div>
<%= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>

<%= render "devise/shared/error_messages", resource: resource %>

<%= f.fields_for :adopter_foster_account do |fields| %>
<%= fields.hidden_field :user_id %>
<% end %>

<div class="form-group mb-3 bigger">
<%= f.email_field :email,
autofocus: true,
Expand Down

0 comments on commit 55d7f93

Please sign in to comment.