search for: element_el

Displaying 2 results from an estimated 2 matches for "element_el".

Did you mean: elements_el
2007 Sep 23
3
Connecting a row of an unknown table to another row of an unknown table
...re ---. \ ''- element X--- game X genre ---| `-- element / `-- game / `- genre -. | .- element / game ยด genre -|-'' ''-----------------------------------'' My first idea was to create three extra join tables, "genre_genres", "element_elements", and "genre_elements". I realized, however, that I could collapse that into one "connections" table: id :integer a_id :integer b_id :integer a_class_name :string b_class_name :string The _id''s can hold either/both the id of a genre or an element; likewise...
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {