跳轉到內容
Main menu
Main menu
move to sidebar
hide
Navigation
Main Page
Help
Browse
Cookbook
Wikijunior
Featured books
Recent changes
Random book
Using Wikibooks
Community
Reading room forum
Community portal
Bulletin Board
Help out!
Policies and guidelines
Contact us
Search
Search
Donations
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Discussion for this IP address
目錄
移動到側邊欄
隱藏
開始
1
ActiveRecord - 模型
切換目錄
Ruby on Rails/ActiveRecord
Add languages
Add links
Book
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Upload file
Special pages
Page information
Get shortened URL
Download QR code
Sister projects
Wikipedia
Wikiversity
Wiktionary
Wikiquote
Wikisource
Wikinews
Wikivoyage
Commons
Wikidata
MediaWiki
Meta-Wiki
Print/export
Create a collection
Download as PDF
Printable version
In other projects
外觀
移動到側邊欄
隱藏
來自華夏公益教科書,開放的書籍,為開放的世界
<
Ruby on Rails
此頁面可能需要
審查
以確保質量。
ActiveRecord - 模型
[
編輯
|
編輯原始碼
]
命名
檢視模型的命名方式以及要避免的名稱
遷移
如何以便捷的方式將資料放入資料庫
關聯
將不同的模型連線在一起
回撥
瞭解如何在資料存在的特定狀態下操作資料
驗證
檢查輸入的正確性
屬性
如何在不編寫 SQL 的情況下查詢不同的標準
聚合
在模型中編寫高階聚合
計算
對資料進行基本的數學計算
acts_as
使用 acts_as 擴充套件功能
時間戳
連線介面卡
類別
:
書籍:Ruby on Rails
華夏公益教科書