From e9d75bde6f05075d21704569c2ba05ffdb1df81b Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Thu, 13 Nov 2014 09:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=8A=E4=BF=AE=E6=94=B9=E8=B5=84=E6=96=99?= =?UTF-8?q?=E3=80=8B=E9=A1=B5=E9=9D=A2=EF=BC=9A=E5=B7=A5=E4=BD=9C=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E4=B8=BA=E4=B8=8D=E5=BF=85=E5=A1=AB=20Signed-off-by:?= =?UTF-8?q?=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- app/views/account/register.html.erb | 2 +- app/views/my/account.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3b6e9a7d2..b466e4721 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -812,7 +812,7 @@ class UsersController < ApplicationController # 必填自己的工作单位,其实就是学校 def auth_user_extension - if @user == User.current && (@user.user_extensions.nil? || @user.user_extensions.school.nil?) + if @user == User.current && @user.user_extensions.nil? flash[:error] = l(:error_complete_occupation) redirect_to my_account_url end diff --git a/app/views/account/register.html.erb b/app/views/account/register.html.erb index 07b773e87..a18c15068 100644 --- a/app/views/account/register.html.erb +++ b/app/views/account/register.html.erb @@ -26,7 +26,7 @@ <% end %>

- <%= f.text_field :mail, :required => true %> + <%= f.text_field :mail,:size => 25, :required => true %>

diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 3118c10dd..4ffcc63fc 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -155,7 +155,7 @@