motion/model/formotion.rb
def from_formotion!(data)
      self.returnable_columns.each{|column|
        if data[column] && column_type(column) == :date || column_type(column) == :time
          data[column] = Time.at(data[column]) unless data[column].nil?
        end
        value = self.send("#{column}=", data[column])
      }
    end
def from_formotion!(data)
      self.returnable_columns.each{|column|
        if data[column] && column_type(column) == :date || column_type(column) == :time
          data[column] = Time.at(data[column]) unless data[column].nil?
        end
        value = self.send("#{column}=", data[column])
      }
    end
def from_formotion! ( data ) self . returnable_columns . each { | column | if data [ column ] && column_type ( column ) == :date || column_type ( column ) == :time data [ column ] = Time . at ( data [ column ] ) unless data [ column ] . nil? end value = self . send ( "#{column}=" , data [ column ] ) } end
<tt>from_formotion</tt> takes the information rendered from a Formotion
 form and stuffs it back into a MotionModel. This data is not saved until
 you say so, offering you the opportunity to validate your form data.
<tt > from_formotion< / tt > takes the information rendered from a Formotion form and stuffs it back into a MotionModel . This data is not saved until you say so offering you the opportunity to validate your form data .