Skip to main content

Home/ WikiTechie/ Group items tagged web

Rss Feed Group items tagged

al-Amjad Tawfiq Isstaif

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.
    • al-Amjad Tawfiq Isstaif
       
      This is exactly what we want.
Muhammad Al-Syrwan

tblobaum/nodeQuery - 0 views

  •  
    remote control jQuery/Zepto with node.js
Noor Orfahly

Frequently Asked Questions (FAQ) - The Web Standards Project - 0 views

  •  
    هذه المقالة تشرح و بشكل مفصل عن منظمة W3C و معايير الويب و أهمية وجودها لضبط منتجات الويب
Muhammad Al-Syrwan

Rails Tutorial for Devise with CanCan and Twitter Bootstrap · RailsApps - 0 views

  •  
    privileges management
‹ Previous 21 - 28 of 28
Showing 20 items per page