OSDN Git Service

t#30472:fix reg msg
authoryasushiito <yas@pen-chan.jp>
Tue, 19 Mar 2013 02:29:55 +0000 (11:29 +0900)
committeryasushiito <yas@pen-chan.jp>
Tue, 19 Mar 2013 02:29:55 +0000 (11:29 +0900)
app/views/admins/registrations/edit.html.erb
app/views/admins/registrations/new.html.erb
app/views/demand_users/registrations/edit.html.erb
app/views/demand_users/registrations/new.html.erb

index dc598c8..887eef8 100644 (file)
@@ -2,7 +2,7 @@
 <h2>Edit <%= resource_name.to_s.humanize %></h2>
 
 <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
-  <%= devise_error_messages! %>
+  <%= render 'system/error_explanation', :obj => resource %>
 
   <div><%= f.label :email %><br />
   <%= f.email_field :email %></div>
index e41727d..4f44ba6 100644 (file)
@@ -2,7 +2,7 @@
 <h2><%= t('admins.signup.title') %></h2>
 
 <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
-  <%= devise_error_messages! %>
+  <%= render 'system/error_explanation', :obj => resource %>
 
   <div><%= f.label :email %><br />
   <%= f.email_field :email %></div>
index 1cece2f..3776a65 100644 (file)
@@ -2,7 +2,7 @@
 <h2>Edit <%= resource_name.to_s.humanize %></h2>
 
 <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
-  <%= devise_error_messages! %>
+  <%= render 'system/error_explanation', :obj => resource %>
 
   <div><%= f.label :email %><br />
   <%= f.email_field :email %></div>
index 04ea23c..419eeee 100644 (file)
@@ -2,7 +2,7 @@
 <h2><%= t('demand_users.signup.title') %></h2>
 
 <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
-  <%= devise_error_messages! %>
+  <%= render 'system/error_explanation', :obj => resource %>
 
   <div><%= f.label :email %><br />
   <%= f.email_field :email %></div>