Undefined method `address' and `national_id_number' for custom fields

6 views
Skip to first unread message

Miroslav (Code for Croatia, ImamoPravoZnati.org)

unread,
Jan 20, 2022, 2:17:19 PMJan 20
to Alaveteli Dev
Hi all,
I have tried adding 2 new fields to User:
- Postal address, and
- PIN (Personal Identification Number)
following examples from the 'ipvtheme'.

After I added everything I got errors:
undefined method `address'
- undefined method `national_id_number'


My code is in this branch:

Anything obvious what I did wrong there?

Any help is much appreciated!

Cheers,
Miroslav

Miroslav (Code for Croatia, ImamoPravoZnati.org)

unread,
Jan 21, 2022, 4:01:22 AMJan 21
to Alaveteli Dev
Hi All,
In the meantime, I found that post_install.rb script was not properly, so issue is solved.

Cheers,
Miroslav

Reply all
Reply to author
Forward
0 new messages