fix new user form

This commit is contained in:
wvengen 2013-10-29 19:11:33 +01:00
parent 9ba425aafa
commit e13ca74df3
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
- unless FoodsoftConfig[:use_nick] == false
= f.input :nick
- if FoodsoftConfig[:use_nick]
-# use_nil option to user model validators break required mark
= f.input :nick, required: true
= f.input :first_name
= f.input :last_name
= f.input :email