This file contains 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
class WFModule | |
include DataMapper::Resource | |
storage_names[:default] = 'Modules' | |
property :id, Serial, :field => 'ModuleID' | |
property :module_name, String, :field => 'ModuleName' | |
property :module_fields, String, :field => 'ModuleFields' | |
property :parameters, String, :field => 'ModuleParameters' | |
property :author, String, :field => 'ModuleAuthor' | |
property :issue, String, :field => 'ModuleIssue' | |
property :deprecated, String, :field => 'ModuleDeprecated' |
This file contains 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
# Fresh ruby 1.9.2, rubygems 1.3.7 and Sinatra 1.0 installs on OS X | |
# This is the contents of test.rb: | |
require 'rubygems' | |
require 'sinatra' | |
get '/' do | |
haml :test | |
end |
This file contains 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
When I try to run this: | |
sudo heroku db:push mysql://root:pass@localhost/booksale | |
I get this: | |
Taps 0.3 Load Error: no such file to load -- taps/operation | |
You may need to install or update the taps gem to use db commands. | |
On most systems this will be: |
This file contains 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
CREATE TABLE `products` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`merchant_id` int(11) DEFAULT NULL, | |
`merchant_name` text, | |
`merchant_product_id` text, | |
`name` text, | |
`url_merchant` text, | |
`url_affiliate` text, | |
`description` text, | |
`price_gbp` float DEFAULT NULL, |
NewerOlder