NoMethodError in Pages#index

Showing /home/mcse/igtplus_new_data/projects/Rails/podcast3/trunk/app/views/pages/index.html.haml where line #4 raised:

undefined method `account' for nil:NilClass

Extracted source (around line #4):

1: - title section.title
2: - crumbs do
3:   - if site_config['left_menu'].to_i == 2
4:     %li= link_to account.unit.title, unit_category_unit_path(account.unit.unit_category, account.unit)
5:   %li= link_to("#{podcast.title}", podcast_path(podcast))
6:   %li= section.title
7: 

Rails.root: /home/mcse/igtplus_new_data/projects/Rails/podcast3/trunk

Application Trace | Framework Trace | Full Trace
app/controllers/pages_controller.rb:12
app/views/pages/index.html.haml:4:in `_app_views_pages_index_html_haml___1758090043_69928558386020_0'
app/helpers/application_helper.rb:445:in `crumbs'
app/helpers/application_helper.rb:443:in `crumbs'
app/helpers/application_helper.rb:442:in `crumbs'
app/views/pages/index.html.haml:2:in `_app_views_pages_index_html_haml___1758090043_69928558386020_0'
app/middleware/flash_session_cookie_middleware.rb:13:in `call'

Request

Parameters:

{"section_id"=>"2222",
 "locale"=>"en"}

Show session dump

Show env dump

Response

Headers:

None