Hi,

I´m running the Radiant 0.9.1 gem without any modifications. rake
db:bootstrap, that´s all.
The same happens when running Radiant edge.
Installed with: ./script/extension install settings

When clicking the Settings-tab in the admin interface this happen:

ActionView::TemplateError (You have a nil object when you didn't
expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split) on line #35 of /opt/
local/lib/ruby/gems/1.8/gems/radiant-0.9.1/app/views/layouts/
application.html.haml:
32: - if current_tab?(tab)
33: %ul#nav_sub
34: - tab.each do |sub_item|
35: - if sub_item.visible?(current_user)
36: %li
37: %a{:href => sub_item.relative_url, :class => current_item?
(sub_item) ? 'current' : ''}>
38: %span

vendor/extensions/settings/app/controllers/admin/
settings_controller.rb:4
radiant (0.9.1) lib/radiant/admin_ui.rb:98:in `visible_by_controller?'
radiant (0.9.1) lib/radiant/admin_ui.rb:87:in `visible?'
radiant (0.9.1) app/views/layouts/application.html.haml:35:in
`_run_haml_47opt47local47lib47ruby47gems47146847gems47radiant45046946147app47views47layouts47application46html46haml'
radiant (0.9.1) app/views/layouts/application.html.haml:34:in `each'
radiant (0.9.1) app/views/layouts/application.html.haml:34:in
`_run_haml_47opt47local47lib47ruby47gems47146847gems47radiant45046946147app47views47layouts47application46html46haml'
radiant (0.9.1) app/views/layouts/application.html.haml:27:in `each'
radiant (0.9.1) app/views/layouts/application.html.haml:27:in
`_run_haml_47opt47local47lib47ruby47gems47146847gems47radiant45046946147app47views47layouts47application46html46haml'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:13:in `render'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/haml/helpers/
action_view_mods.rb:13:in `render'
radiant (0.9.1) app/controllers/admin/preferences_controller.rb:11:in
`show'
radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:
20:in `process'
/opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/opt/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/opt/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:92:in `each'
/opt/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/opt/local/lib/ruby/1.8/webrick/server.rb:82:in `start'


About my application's environment
Ruby version 1.8.7 (i686-darwin10)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.8
Active_record version 2.3.8
Active_resource version 2.3.8
Active_support version 2.3.8
Environment development
Database adapter mysql
Database schema version 20091003095744


Issue created at Github: 
http://github.com/Squeegy/radiant-settings/issues#issue/5


Cheers,
Martin

Reply via email to