Hi,
On 30.07.2010, at 10:27, Martin Stabenfeldt wrote:
> 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
This bug just hit me yesterday (but I thought its not a bug ;-)
I guess the migration naming is inappropriate.
>
> When clicking the Settings-tab in the admin interface this happen:
>
> ActionView::TemplateError (You have a nil object when you didn't
> expect it!
Yes, because the migration did not run.
> 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
Workaround:
open
./script/console development
or
./script/console production
and enter
Radiant::Config['roles.settings']='admin'
this should fix it :-)
cu edi
--
DI Edmund Siegfried Haselwanter Tel. : +43 - 676 - 3282554
UID: ATU64821134
Leitnergasse 16, 8010 Graz
e-mail: mailto:[email protected]
web: http://www.iteh.at