Method: Form#initialize

Defined in:
lib/make/form.rb

#initializeForm



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/make/form.rb', line 2

def initialize
  # Convert given model into String
  @formClass='make-form'
  # By default, set form action and method to create using REST conventions
  @formMethod='post'
  @formMethodHidden=nil
  @formStart=''
  @formMiddle=[]
  @formEnd="\n\t<input id=\"authenticity_token\" name=\"authenticity_token\" type=\"hidden\" value=\"<%= form_authenticity_token %>\">\n\t<input type=\"submit\" value=\"Submit\">\n</form>"
  @default_keys_to_ignore = ['id', 'created_at', 'updated_at']
  @potential_keys_to_ignore = ['salt']
  @defaults = {}
  @keys_to_show=[]
  @selections = []
  @password_confirmation = true
  @model = {}
  @modelName = ''
  @columns = []
  @id = nil
end