Hi all:
I'm working on an extension that needs to add to the personal
preference and users edit interfaces.
I've got a partial ready (the same one will be used for both
interfaces), and have added the following to my activate method:
```
admin.users.edit.add :form, 'admin/preferences/two_factor_edit',
:after => 'edit_password'
admin.preferences.edit.add :form,
'admin/preferences/two_factor_edit', :after => 'edit_password'
```
The partial is rendered in the user edit view fine, but when I add the
second line (user preferences) Radiant starts throwing:
undefined method `preferences' for #<Radiant::AdminUI
Everything else seems to refer to preferences as admin.preferences, so
I have a feeling I'm missing something blatantly obvious.
Any ideas?
—Sam
--
Sam Whited
pub 4096R/EC2C9934
SamWhited.com
s...@samwhited.com
404.492.6008