Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php:202) in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parserutils.php:202) in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/actions.php on line 128
programming:rails - cyberdesk
 

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/lexer.php on line 292

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 236

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 290

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 323

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/handler.php on line 560

Deprecated: Assigning the return value of new by reference is deprecated in /home/allenfai/public_html/cyberdesk/dokuwiki-2006-11-06/inc/parser/xhtml.php on line 980

Differences

This shows you the differences between the selected revision and the current version of the page.

programming:rails 2005/11/21 22:05 programming:rails 2005/11/21 22:10 current
Line 131: Line 131:
end end
</code> </code>
 +
 +=== Overriding Implied Keys ===
 +If your database schema does not match the Rails way of doing things, that's okay! Sure, it will require a couple lines of work, but even in the end you will still be ahead using Rails.
 +
 +<code>
 +class Project < ActiveRecord::Base
 +  set_table_name "my_table"
 +  set_primary_key "project id"
 +end
 +</code>
 +
 +See? That wasn't hard!
=== Associations === === Associations ===
 
programming/rails.txt · Last modified: 2005/11/21 22:10 by allen