1

私は onemonth rails をやっていますが、attr_accessible 関数に問題があります。Rails 4(gem 'protected_attributes') に gem としてインストールし、simple_form で使用しています。

しかし、問題は、フォームを名前で更新すると、それを覚えていないことです! しかし、それは正常に更新されたと言っていますか??

これは私のuser.rbです

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  attr_accessible :email, :password, :password_confirmation, :remember_me, :name
end
4

1 に答える 1