Rails Rails 4.0 將分離 attr_accessible,而預設改用 strong_parameters

xdite · 2012年08月14日 · 最后由 ery 回复于 2012年08月14日 · 2692 次阅读

https://twitter.com/dhh/status/235071205886017536

from @dhh

@jimweirich Also of note, we're splitting off attr_accessible and friends from Rails 4.0. New recommended approach is strong parameters.
需要 登录 后方可回复, 如果你还没有账号请 注册新账号