ActiveModel
来源:互联网 发布:淘宝卖家管理流程图 编辑:程序博客网 时间:2024/05/16 06:11
在rails的应用中,你经常听到的是activerecord吧。
但是了现在你有个产品,又不用到数据库,但是又想用到aciverecord中的validate ,error, callback等功能,
那怎么办了? 我们有ActiveModel
ActiveModel 有自己单独的gem 但是需要activesupport 的支持。
它有很多功能 包括
AcitveModel::AttributeMethods
AcitveModel::Callbacks
ActiveModel::Conversion
ActiveModel::Dirty
ActiveModel::Naming
ActiveModel::Observer
ActiveModel::Serialization
ActiveModel::Translation
ActiveModel::Validation
http://www.slideshare.net/pauldix/building-web-service-clients-with-activemodel
- ActiveModel
- ActiveModel::ForbiddenAttributesError
- ActiveModel::ForbiddenAttributes 错误
- rails 4.0 中出现 ActiveModel::ForbiddenAttributesError: ActiveModel::ForbiddenAttributesError 错误
- rails中ActiveModel::ForbiddenAttributesError的解决方案
- Rails4版本的ActiveModel::ForbiddenAttributesError错误
- rails中ActiveModel::ForbiddenAttributesError的解决方案(新)
- rails中ActiveModel::ForbiddenAttributesError的解决方案(新)
- ruby on rails出现的问题ActiveModel::ForbiddenAttributesError
- 在rails 4.0 中 使用strong_parameters 来避免 ActiveModel::ForbiddenAttributesError 错误
- 在rails 4.0 中 使用strong_parameters 来避免 ActiveModel::ForbiddenAttributesError 错误
- 图片质量控制-流量谨慎型
- C++类的声明和对象的定义
- Linux 共享库LD_PRELOAD环境变量
- C++拷贝构造函数详解
- 谷歌的移动生财术
- ActiveModel
- Ehcache学习
- Debian安装firefox
- android坏境配置
- 数据挖掘中所需的概率论与数理统计知识
- ubutu 输入法
- ubutu root
- C语言读取BMP文件头、信息头及像素信息
- C#从Excel单元格中取值结果总是显示system._comobject