Created
February 17, 2015 01:10
-
-
Save loriculberson/2cc68cc03008446b1670 to your computer and use it in GitHub Desktop.
WIP create method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def self.create(task) | |
| database.transaction do | |
| database[:tasks].insert("title" => task[:title], "description" => task[:description]) | |
| end | |
| # require 'pry';binding.pry | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Two issues: