Hi Edmund,

> > 2010/7/30 Haselwanter Edmund <[email protected]>
> > > On 30.07.2010, at 10:27, Martin Stabenfeldt wrote:
> > > I´m running the Radiant 0.9.1 gem without any modifications.
> > >
> > > 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.
> >
> > Workaround:
> >
> > [snipp..]
> > open ./script/console and enter
> > Radiant::Config['roles.settings']='admin'
> >
> > this should fix it :-)

Right you are, it doesn´t crash at that point any more!
But, when I click Admin, Subtitle it stumbles again:

> NoMethodError in Admin/settings#edit
>
> Showing vendor/extensions/settings/app/views/admin/settings/edit.html.haml
where line #29 raised:
>
> undefined method `description' for #<Radiant::Config:0x1035f5218>
> Extracted source (around line #29):
>
> 26:           = f.password_field :value, :class => 'textbox'
> 27:         - else
> 28:           = f.text_field :value, :class => 'textbox'
> 29:     .description= textilize @setting.description
> 30:
> 31:     %p.buttons
> 32:       = save_model_button(@setting)
> RAILS_ROOT: /Users/martin/Work/radiant-0.9.1



Looks like I better get them migrations running. :-)
Do you know how I run the migrations manually? I guess I could copy them to
[RADIANT_ROOT]/db/migrate, but I guess this isn´t the best way?


-- 
Martin Stabenfeldt
Tlf: +47 93441707

Reply via email to