2
我使用設計寶石註冊,但我有問題。我的表格包括:名字,姓氏,電子郵件....但點擊http://localhost:3000/users/sign_up。它只顯示電子郵件,密碼。 please see image here設計註冊問題
我需要所有顯示字段first_name,last_name ...請幫助我。感謝
create_table(:users) do |t|
t.string :first_name
t.string :last_name
t.database_authenticatable :null => false
t.recoverable
t.rememberable
t.trackable
t.invitable
t.references :address
t.integer :current_city_id
t.integer :hometown_id
t.string :university
t.integer :grad_year
t.string :degree
# t.confirmable
# t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
# t.token_authenticatable
t.timestamps
end
感謝您的支持 – khanh 2011-06-11 06:59:31