#85 ✓resolved
Jeff Judge

Tab issue

Reported by Jeff Judge | August 14th, 2009 @ 08:23 AM | in 0.9.7 "Steinitz"

I merged the most recent changes into my codebase and hit the following issue:

Showing app/views/layouts/_tabbed.html.haml where line #3 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.to_sym

Extracted source (around line #3):

1: #tabs
2: %ul
3: - tabs.each do |tab|
4: %li= link_to(tab[:text], tab[:url], :class => tab[:active] ? "active" : "")
6: = show_flash

Trace of template inclusion: app/views/layouts/application.html.haml

RAILS_ROOT: /Users/jjudge/projects/rails/fat_free_crm
Application Trace | Framework Trace | Full Trace

/Users/jjudge/projects/rails/fat_free_crm/app/helpers/application_helper.rb:22:in tabs' /Users/jjudge/projects/rails/fat_free_crm/app/helpers/application_helper.rb:22:ineach' /Users/jjudge/projects/rails/fat_free_crm/app/helpers/application_helper.rb:22:in tabs' /Users/jjudge/projects/rails/fat_free_crm/app/views/layouts/_tabbed.html.haml:3:in_run_haml_app47views47layouts47_tabbed46html46haml_locals_object_tabbed'

Looking at that line of code, I see:

Setting[:tabs].each { |tab| tab[:active] = (tab[:text].downcase.to_sym == @current_tab || tab[:url][:controller].to_sym == @current_tab) }

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 ยป

Ruby on Rails CRM platform for Web 2.0 and beyond

People watching this ticket