[Bug]用户群组页面存在异常
Reported by yuanyi | 2009-09-03 12:17:03 UTC | in 1.0.1
A ActionView::TemplateError occurred in users#groups:
You have a nil object when you didn't expect it! The error
occurred while evaluating nil.login
On line #1 of app/views/users/groups.html.erb
1: <% @page_title = @title = "#{h @user.login}参加的小组" %> 2: 3: <% content_for :fullsize do -%> 4:
app/views/users/groups.html.erb:1
Comments and changes to this ticket
-

makestory 2009-09-03 13:34:02 UTC
- Tag set to bug
我没有在users_controller.rb 找到叫 groups 的controller , @user 在这个模板里就是个nil 。
你们看看告诉我是怎么回事吧。 -

makestory 2009-09-04 00:05:22 UTC
- Assigned user set to makestory
- State changed from new to open
在 app/controllers/users_controller.rb 的UsersController中
加上了
def groups
find_user get_user_record(@user)end
大家看看问题解决了没有?
-

-

Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »