Ruby on Rails reference
As I learn Ruby on Rails I will be adding links to reference materials to this page.
Overall help
Getting started
- "Revisiting Ruby on Rails Revisited" (a series by Curt Hibbs)
Many-to-many / "through" associations (JOINed tables)
- RoR Wiki: has_and_belongs_to_many (simplest to use)
- has_and_belongs_to_many walkthrough
- RoR Wiki: "Through" Associations (a bit more complicated)
- Learning Rails: Many-to-Many Relationships (fairly complicated)
- Self-referential has_many :through associations (pretty complicated)
DB stuff with Rake
- After you have a migration file XXX_do_whatever.rb in db/migrate, run rake db:migrate to update the database and also db/schema.rb
- If you already have the correct db/schema.rb and you want to load it into your DB, run rake db:schema:load
page_revision: 4, last_edited: 1186669322|%e %b %Y, %H:%M %Z (%O ago)





