1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge branch 'master' of git@github.com:lifo/docrails

This commit is contained in:
Cheah Chu Yeow 2008-05-07 13:48:01 +08:00
commit 405de50af0

View file

@ -169,10 +169,10 @@ A short rundown of the major features:
class AddSystemSettings < ActiveRecord::Migration class AddSystemSettings < ActiveRecord::Migration
def self.up def self.up
create_table :system_settings do |t| create_table :system_settings do |t|
t.string :name t.string :name
t.string :label t.string :label
t.text :value t.text :value
t.string :type t.string :type
t.integer :position t.integer :position
end end
@ -289,16 +289,6 @@ Bi-directional associations thanks to the "belongs_to" macro
thirty_seven_signals.firm.nil? # true thirty_seven_signals.firm.nil? # true
== Examples
Active Record ships with a couple of examples that should give you a good feel for
operating usage. Be sure to edit the <tt>examples/shared_setup.rb</tt> file for your
own database before running the examples. Possibly also the table definition SQL in
the examples themselves.
It's also highly recommended to have a look at the unit tests. Read more in link:files/RUNNING_UNIT_TESTS.html
== Philosophy == Philosophy
Active Record attempts to provide a coherent wrapper as a solution for the inconvenience that is Active Record attempts to provide a coherent wrapper as a solution for the inconvenience that is
@ -336,7 +326,7 @@ then use:
% [sudo] gem install activerecord-1.10.0.gem % [sudo] gem install activerecord-1.10.0.gem
You can also install Active Record the old-fashion way with the following command: You can also install Active Record the old-fashioned way with the following command:
% [sudo] ruby install.rb % [sudo] ruby install.rb
@ -357,5 +347,5 @@ RubyForge page at http://rubyforge.org/projects/activerecord. And as Jim from Ra
remember to update the corresponding unit tests. If fact, I prefer remember to update the corresponding unit tests. If fact, I prefer
new feature to be submitted in the form of new unit tests. new feature to be submitted in the form of new unit tests.
For other information, feel free to ask on the ruby-talk mailing list For other information, feel free to ask on the rubyonrails-talk
(which is mirrored to comp.lang.ruby) or contact mailto:david@loudthinking.com. (http://groups.google.com/group/rubyonrails-talk) mailing list.