Class: Crimson::Form

Inherits:
Object show all
Defined in:
lib/crimson/widgets/form.rb

Instance Attribute Summary

Attributes inherited from Object

#added_children, #event_handlers, #id, #node, #removed_children, #tag

Attributes inherited from Model

#local, #observers, #revision_number, #revisions

Instance Method Summary collapse

Methods inherited from Object

#==, #add, #breadth_each, #children, #commit_tree!, #eql?, #find_descendant, #hash, #hidden?, #hide, #inspect, #move, #on, #on_event, #parent, #parent=, #postordered_each, #preordered_each, #remove, #root, #show, #shown?, #siblings, #to_s, #un

Methods inherited from Model

#add_observer, #apply_changes!, #changed?, #changes, #commit!, #master, #modify, #new_changes, #notify_observers, #reload!, #remove_observer, #rollback!

Constructor Details

#initializeForm

Returns a new instance of Form.



7
8
9
10
# File 'lib/crimson/widgets/form.rb', line 7

def initialize
  super(:form)
  self.onsubmit = "return false"
end