Help.GitHub - Working with submodules - 1 views
Multiple Table Inheritance with ActiveRecord | Medium eXposure - 0 views
activerecord - Why does rails not respect the type of a belongs_to associated object wi... - 0 views
Real world Rails, Part 3: Optimizing ActiveRecord - 2 views
-
The third alternative is to provide a common capability, but using associations instead of inheritance. ActiveRecord has a feature called polymorphic associations that is ideal for attaching common behavior to a class without inheritance. You saw an example of a polymorphic association earlier in Address. I can use the same technique to attach my common attributes for content management instead of inheritance. Consider a class called ContentBase. Normally, to associate that class to another class, you would use a has_one relationship and a simple foreign key. But you would probably want your ContentBase to work with more than one class. You need a foreign key, and also a column that defines the type of the target class. That's exactly how ActiveRecord polymorphic associations work. Look at the classes in Listing 11.
DHH Offended By RSpec, Says Test::Unit Is Just Great - 0 views
The Ruby Toolbox - Know Your Options! - 0 views
Good base app for Rails 3? - Stack Overflow - 0 views
Starting a "professional" Rails app with Haml, Rspec, Devise, and Web App The... - 0 views
10 Ruby on Rails Best Practices » SitePoint - 0 views
Getting Comfortable Working With Rails Core - 0 views
The Ruby Toolbox - Wiki Apps - 0 views
Federated Content Management - 0 views
rubygems - Building a ruby gem for Rails applications - Stack Overflow - 0 views
Cappuccino Web Framework - Learn About Cappuccino and Objective-J - 2 views
Comparison of social network engines/platforms/frameworks « Kodeplay - Open s... - 0 views
looking for a barebone social network framework in Ruby/Rails « Tech/Social/H... - 0 views
« First
‹ Previous
61 - 80 of 138
Next ›
Last »
Showing 20▼ items per page