#87 ✓resolved

Error on access to /users page

Reported by Tim | October 22nd, 2009 @ 02:11 AM

I made a new install with CentOS 5.3 this afternoon to test out the web interface. I seem to have hit a bug on the /users page that causes an error when accessing it. The server logs are below from my attempt to access the /users page.

[2009-10-21 20:06:10] INFO WEBrick::HTTPServer#start: pid=19522 port=3000 SQL (0.2ms) SET SQL_AUTO_IS_NULL=0

Processing UsersController#index (for ::ffff:10.xx.xx.135 at 2009-10-21 20:06:14) [GET]
User Columns (1.0ms) SHOW FIELDS FROM users User Load (0.4ms) SELECT * FROM users WHERE (users.id = 1) LIMIT 1 roles_users Columns (0.7ms) SHOW FIELDS FROM roles_users Role Load (0.3ms) SELECT * FROM roles INNER JOIN roles_users ON roles.id = roles_users.role_id WHERE (roles_users.user_id = 1 ) Role Columns (0.5ms) SHOW FIELDS FROM roles User Load (0.3ms) SELECT * FROM users ORDER BY login Rendering template within layouts/application
Rendering users/index
CACHE (0.0ms) SELECT * FROM roles INNER JOIN roles_users ON roles.id = roles_users.role_id WHERE (roles_users.user_id = 1 )

ActionView::TemplateError (can't convert Symbol into Integer) on line #15 of app/views/users/_user.html.haml:
12: %td= link_to user.login, user_path( user )
13: %td= user.email
14: %td= user.has_role?('admin') ? t("label_user_role.admin") : t("label_user_role.user")
15: %td
16: - unless user.suspended?
17: = prototip_info_icon('flag_green.png', "active-user-#{user.id}")
18: - else

app/views/users/_user.html.haml:15:in `_run_haml_app47views47users47_user46html46haml_locals_object_user_user_counter'
haml (2.2.5) [v] lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
haml (2.2.5) [v] lib/haml/helpers.rb:96:in `non_haml'
haml (2.2.5) [v] lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
app/views/users/index.html.haml:10:in `_run_haml_app47views47users47index46html46haml'
haml (2.2.5) [v] lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
haml (2.2.5) [v] lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
haml (2.2.5) [v] lib/sass/plugin/rails.rb:19:in `process'
<internal:prelude>:8:in `synchronize'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

Rendered rescues/trace (120.9ms)
Rendered rescues/
request_and_response (1.3ms)
Rendering rescues/layout (internal_server_error)

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

This issue tracker has been deprecated. Please use the Github issue tracker at https://github.com/kennethkalmer/powerdns-on-rails/issues

Thank you

People watching this ticket