Module ItemsHelper
In: app/helpers/items_helper.rb

Methods

Public Instance methods

[Source]

    # File app/helpers/items_helper.rb, line 9
 9:   def booleen id, name, value, label
10:     # Create a booleen (checkbox) field
11:     "<input type=\"checkbox\" id=\"#{id}\" name=\"#{name}\" value=\"true\" />
12:     <label for=\"#{id}\">#{clean name}</label>"
13:   end

[Source]

   # File app/helpers/items_helper.rb, line 2
2:   def create_item_variable_field item_variable
3:     # create a new variable field 
4:     begin
5:       eval "#{item_variable.variable_type} item_variable.id, item_variable.variable, item_variable.variable, item_variable.variable"
6:     end
7:   end

[Validate]