changeset 66:29d087fde142 luisf

Correctly prints the error messages if user description is blank.
author luisf
date Mon, 06 Dec 2010 13:48:52 +0000
parents 69ee2e406f71
children 60c0a4e08e09
files app/views/account/register.rhtml config/locales/en-GB.yml config/locales/en.yml
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/account/register.rhtml	Mon Dec 06 12:54:56 2010 +0000
+++ b/app/views/account/register.rhtml	Mon Dec 06 13:48:52 2010 +0000
@@ -2,7 +2,6 @@
 
 <% form_tag({:action => 'register'}, :class => "tabular") do %>
 <%= error_messages_for 'user' %>
-<%= error_messages_for 'ssamr_user_details' %>
 
 <div class="box">
 <!--[form:user]-->
--- a/config/locales/en-GB.yml	Mon Dec 06 12:54:56 2010 +0000
+++ b/config/locales/en-GB.yml	Mon Dec 06 13:48:52 2010 +0000
@@ -196,7 +196,9 @@
   
   gui_validation_error: 1 error
   gui_validation_error_plural: "{{count}} errors"
-  
+
+  field_ssamr_user_detail:
+    description: User Description
   field_name: Name
   field_description: Description
   field_summary: Summary
--- a/config/locales/en.yml	Mon Dec 06 12:54:56 2010 +0000
+++ b/config/locales/en.yml	Mon Dec 06 13:48:52 2010 +0000
@@ -200,7 +200,9 @@
   
   gui_validation_error: 1 error
   gui_validation_error_plural: "{{count}} errors"
-  
+
+  field_ssamr_user_detail:
+    description: User Description
   field_name: Name
   field_description: Description
   field_summary: Summary