Active Record Scope: default_scope: 默认的检索方式 Scope 总是返回ActiveRecord::Relation Validations: 数据总是要经过Validations才能存在数据库之中 Writing your own validation: N+1 Read More
Seeding the Database: db/seed.rb 可以提供预设data rake db:seed rails db .headers on .mode columns 显示数据库内容 Including SQL fragments: SQL injection: *操作原始SQL以侵 Read More
Active Record: ORM ( Object-relational Mapping)Bridges the gap between relational databases , which are designed around mathematical Set Theory and Ob Read More
ruby是动态语言,它有动态语言的优势与劣势 动态语言,像python与ruby 你不用提前去定义method - they need to only be "found" when invoked calling method dynamically: Dynamic Dispatch: 不需要c Read More
*rails uses SQLite for database by default *Built-in command-line DB viewer *Self-contained,server-less,zero-configuration,transactional, relational S Read More