when used with devise_cas_authenticable, it does make sense to ask for a password in the new account creation page

This commit is contained in:
did 2011-07-28 21:11:06 +02:00
parent a9b6c234e7
commit 040a51bc5f

View File

@ -9,7 +9,10 @@
= f.foldable_inputs :name => :information do = f.foldable_inputs :name => :information do
= f.input :name = f.input :name
- unless f.object.respond_to?(:password)
= f.input :email
- if f.object.respond_to?(:password)
= f.foldable_inputs :name => :credentials do = f.foldable_inputs :name => :credentials do
= f.input :email = f.input :email
= f.input :password, :input_html => { :autocomplete => "off" } = f.input :password, :input_html => { :autocomplete => "off" }