Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Ruby
Active Record 36 codes
Home
Ruby
Active Record
1 A find_or_create_by_ dynamic finder
2 Account destroy_all
3 ActiveRecord infers database table names based on class names
4 Add record to database with save method
5 Aggregate function and group by
6 Connect to MySql
7 Connection string for Oracle
8 Delete a record with destroy
9 Delete the associated record from the database
10 Find by column name
11 Find by conditions
12 Find first or find all
13 Find many values
14 Find with AND
15 Find with conditions
16 Find with OR
17 Find_by_sql
18 Group by clause
19 Id is default for autoincrease
20 Id is default for find(1)
21 If you want table names to be singular instead of plural, you can set the configuration parameter pluralize_table_names
22 If your primary key column is not named simply id, you can override this from within the class definition
23 Indicate table name in ActiveRecord
24 Left join
25 Left join on a column
26 Limit offset
27 PostgreSQL Connection Parameters
28 Set up one to many map with has many
29 Setup relation ship between one to many map with belongs_to
30 SQL Server Parameters
31 SQLite Parameters
32 Sybase Parameters
33 The
34 Transactions with ActiveRecord
35 Update a record
36 Update with update_attribute