lib/widget/widget_data.rb
def create(name)
      return false unless @widgets.where(name).empty?
      time_now = now
      @widgets.add(:name=>name, :created_at=>time_now, :modified_at=>time_now)
      save_widgets
      true
    end
def create(name)
      return false unless @widgets.where(name).empty?
      time_now = now
      @widgets.add(:name=>name, :created_at=>time_now, :modified_at=>time_now)
      save_widgets
      true
    end
CRUD