惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
Attack and Defense Labs
Attack and Defense Labs
V2EX - 技术
V2EX - 技术
O
OpenAI News
S
Secure Thoughts
H
Heimdal Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Schneier on Security
Schneier on Security
H
Hacker News: Front Page
S
Security Affairs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
The Register - Security
The Register - Security
GbyAI
GbyAI
Cloudbric
Cloudbric
MongoDB | Blog
MongoDB | Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Forbes - Security
Forbes - Security
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Cloudflare Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog
T
Tor Project blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Hacker News: Ask HN
Hacker News: Ask HN
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
V
V2EX
T
Tailwind CSS Blog
SecWiki News
SecWiki News
NISL@THU
NISL@THU
C
Check Point Blog

博客园 - CowboyRyan

获取 光盘信息 关于 python 的注释 python 调用 c 模块 hibernate 将图片写入 oracle blob jquery学习总结 之 dialog Excel开发总结:关于C#导入导出excel的那些琐事 转:HTML及XML语言的转义字符 - CowboyRyan - 博客园 关于SVN:合并提交是如何操作的? ActiveSync 无法同步解决记录 RH 基本文件操作命令 捣鼓Ubuntu下RPM安装 vm下linux 界面切换 杂 感 悟 测试杀毒软件强不强 【Transformer Ⅱ 】观感 ExtJs 笔记1 关于 Windows Server 2008 许可证到期 使用PowerDesigner生成HTML功能 PowerDesigner建立已存在字段索引
Agile WDR 读书笔记
CowboyRyan · 2013-04-07 · via 博客园 - CowboyRyan

用户登录章节,

书上的代码会报错,Can’t mass-assign protected attributes: password_confirmation。

解决办法:

在rails3.2中,自动生成脚手架的话,app/models/user.rb中有这么一行

1 attr_accessible  :name, :hashed_password,:salt

需在后面加上:password_confirmation和:password两项属性。即

attr_accessible  :name, :password_confirmation,:password,:hashed_password,:salt

参考:http://www.cnblogs.com/suprise/