search for: pieluszczak

Displaying 3 results from an estimated 3 matches for "pieluszczak".

2006 Aug 15
2
Extracting the current value of a DOM element
So, say I have two select boxes. One with the letters of the alphabet, and a second with a list of names. When I select the letter in the first, how do I, in my onChange function, extract the value I selected in the first box, to determine what values to populate the second box with? I don''t want to submit the form, I''d like to do this with Ajax. Thanks in advance, Ben. --
2006 Aug 15
0
ActiveRecord inheritance with types table
I have a Field class: class Field < ActiveRecord::Base belongs_to :field_type end with it''s table: fields: id field_type_id name ordering every field has a type class FieldType < ActiveRecord::Base end stored in the field_types table field_types: id name class_name for each field type, there''s a subclass of Field that do whatever special
2006 Feb 24
2
how to better generalize a tree?
first some background info: I have a blog application that has a comments table with the following columns: id parent_id post_id created_at body here''s my model: class Comment < ActiveRecord::Base belongs_to :post acts_as_tree :order => ''created_at'' def print_children (options={}) before = options[:before] ? options[:before]