active_registration 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5656724118790f297b2fbe83b1e5dcc23294e3222ac8061b62e700e16e055f6f
4
- data.tar.gz: 3e29abf66e92085e9cfa2f6f96381d293e6de86cee4dd5fd7c2ceccfd562bc7b
3
+ metadata.gz: 5d91f57419970f798df8aadc2d7fcebf139fdd1f9d215f845389ecc744cbfd0f
4
+ data.tar.gz: 9c4149954450c9fd6967e9823e3eed6574e7ae2940da157b870db56cf0f450ac
5
5
  SHA512:
6
- metadata.gz: 5f26543712959a6d7df2f013decfe077a00e796f60b22c0b04248338a568dc1ddce47d84e5eb3fe43523d078825b6b753b33d7414d1709fd430f7457be615605
7
- data.tar.gz: 92b71eb24908c29b96267d4558114f8a7ef01220ccfc3c010f617f4962ca8d12b3caa6623246616cd7356a7ca88e4358892fde16b21c9804eb9db51dd9cfa90c
6
+ metadata.gz: 9928062ea9157a3f3232ea575b2fd48cd3d4312b216c974e491964a8753ead2cd2b478a82e39ea786e7307330bcb6e46d188a813b12008236b48da333057f10a
7
+ data.tar.gz: e7bbe018225831ef611ac27bbf42b8536f66dc31d734dee4581af927bac0e17bc46ad89baed73164c380d5ad1e167f2e9e87f627425c6e9105e005726e986d2a
@@ -1,3 +1,3 @@
1
1
  module ActiveRegistration
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -11,7 +11,8 @@ class RegistrationsController < ApplicationController
11
11
  ConfirmationMailer.confirmation_instructions(@user).deliver_later
12
12
  redirect_to root_path, notice: "Confirmation email sent!"
13
13
  else
14
- render :new
14
+ flash[:alert] = @user.errors.full_messages.join(", ")
15
+ render :new, status: :unprocessable_entity
15
16
  end
16
17
  end
17
18
 
@@ -1,6 +1,6 @@
1
1
  <%= form_with model: @user, url: registration_path do |form| %>
2
- <%= form.email_field :email_address %>
3
- <%= form.password_field :password %>
4
- <%= form.password_field :password_confirmation %>
5
- <%= form.submit "Sign Up" %>
2
+ <%= form.email_field :email_address, placeholder: "Email Address" %><br>
3
+ <%= form.password_field :password, placeholder: "Password" %><br>
4
+ <%= form.password_field :password_confirmation, placeholder: "Confirm Password" %><br>
5
+ <%= form.submit "Sign Up" %><br>
6
6
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_registration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salanoid
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.6.7
68
+ rubygems_version: 3.6.9
69
69
  specification_version: 4
70
70
  summary: A simple gem that adds generators for sign up Rails Authentication Generator.
71
71
  test_files: []