Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 06/23/2009: Multi-table Inheritance?

Ask for Help

“Has anyone implemented mutli-table (class table) inheritance in Rails, as apposed to single table inheritance (STI)?”

  • There are some plugins that nobody has tried, such as inherits_from
  • What about a view to represent the super set of tables and rows?

“We’re looking for a dead-simple, drop-in JS rating or ‘starting’ plugin.”

Check out the start-rating jQuery plugin. Any other suggestions?

Comments
  1. KA says:

    http://github.com/sava/class_table_inheritance/tree/master

    “Keep in mind that only PostgreSQL is currently supported”

  2. Josh says:

    The star-rating jQuery plugin from fyneworks is awesome, but it will barf on the standard form field names that Rails uses, i.e.

    mymodel[myfield]

    My fork fixes that issue.

    http://github.com/raskchanky/star-rating/tree/master

  3. Bruno Michel says:

    For multi-table inheritance in Rails, all you have to do is adding this line in the parent class : self.abstract_class = true. I’m doing that for a personal project. The code is on github : http://github.com/nono/linuxfr.org/blob/64703d1b97f5ac90fbf7fa42289a9f65972d64fe/app/models/content.rb.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *