Password reset page results in error 500
Created by: thomwiggers
The password reset page results in a 500 error due to what looks like the ruby equivalent of a null pointer.
Started GET "/users/password/new" for 127.0.0.1 at 2012-09-29 01:28:54 +0200 Processing by Devise::PasswordsController#new as HTML Rendered devise/shared/_links.erb (0.3ms) Rendered devise/passwords/new.html.erb within layouts/application (2.0ms) Rendered layouts/_head.html.haml (1.1ms) Rendered layouts/_flash.html.haml (0.1ms) Rendered layouts/_head_panel.html.haml (1.7ms) Completed 500 Internal Server Error in 8ms ActionView::Template::Error (undefined method `is_admin?' for nil:NilClass): 12: = form_tag search_path, method: :get do |f| 13: = text_field_tag "search", nil, placeholder: "Search", class: "search-input" 14: .fbtn 15: - if current_user.is_admin? 16: = link_to admin_root_path, class: "btn small", title: "Admin area" do 17: %i.icon-cog 18: Admin app/views/layouts/_head_panel.html.haml:15:in `_app_views_layouts__head_panel_html_haml___597222991215799015_53167500' app/views/layouts/application.html.haml:6:in `_app_views_layouts_application_html_haml__3495812077105832191_53112720'
I'm on master, commit a79eb8428946152021b6f3a25398c49f2e9e7099