Project

General

Profile

Actions

Defect #6507

closed

ActionView::TemplateError undefined method `global_role_id'

Added by Delic Muhamed over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-09-27
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi.
I have an error, if I want to edit a user. I dont know why.

Can somebody help me?

Errormessage:

[[ActionView::TemplateError (undefined method `global_role_id' for #<User:0x2ac793935050>) on line #16 of vendor/plugins/leads_plugin/app/views/users/_form.rhtml:
13: <% end >
14:
15: <p><
= f.check_box :admin, :disabled => (user user == User.current) ></p>
16: <p><
= f.select :global_role_id, Role.all.collect{|p| [p.name, p.id]} ></p>
17: <
= call_hook(:view_users_form, :user => user user, :form => f) %>
18: </div>
19:

lib/tabular_form_builder.rb:38:in `select'
vendor/plugins/leads_plugin/app/views/users/_form.rhtml:16:in `_run_rhtml_vendor47plugins47leads_plugin47app47views47users47_form46rhtml_locals_f_form_object'
app/views/users/_general.rhtml:2:in `_run_rhtml_app47views47users47_general46rhtml_locals_general_object_tab'
app/helpers/application_helper.rb:614:in `labelled_tabular_form_for'
app/views/users/_general.rhtml:1:in `_run_rhtml_app47views47users47_general46rhtml_locals_general_object_tab'
app/views/common/_tabs.rhtml:24:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/views/common/_tabs.rhtml:23:in `each'
app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/helpers/application_helper.rb:182:in `render_tabs'
app/views/users/edit.rhtml:7:in `_run_rhtml_app47views47users47edit46rhtml']]

Thanks.

Actions

Also available in: Atom PDF