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
# ====================================== | |
# Specification | |
# ====================================== | |
# We are a small inn with a prime location that buy and sell only the finest goods. | |
# Unfortunately, our goods are constantly degrading in quality as they approach their sell by date. We | |
# have a system in place that updates our inventory for us. It was developed by a no-nonsense type named | |
# Leeroy, who has moved on to new adventures. | |
# - All items have a SellIn value which denotes the number of days we have to sell the item |
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
// ====================================== | |
// Gilded Rose Requirements Specification | |
// ====================================== | |
// We are a small inn with a prime location in a prominent city ran by a friendly innkeeper named Allison. | |
// We also buy and sell only the finest goods. | |
// Unfortunately, our goods are constantly degrading in quality as they approach their sell by date. We | |
// have a system in place that updates our inventory for us. | |
// First an introduction to our system: |
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
function init_ckeditor(editor_name) { | |
if (CKEDITOR.instances && CKEDITOR.instances[editor_name]) { | |
try { | |
CKEDITOR.instances[editor_name].destroy(); | |
} catch (err) { | |
CKEDITOR.remove(editor_name); | |
} | |
} | |
CKEDITOR.replace( editor_name , | |
{ |
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
[dmcdev] ~/dmcperforma | |
$ bundle exec rake db:migrate | |
/Users/dmcdev/.rvm/gems/ruby-1.9.3-p194@performa/gems/zipruby-0.3.6/lib/zipruby.bundle: warning: already initialized constant VERSION | |
== CreateDmcwikiPages: migrating ============================================= | |
-- create_table(:dmcwiki_pages) | |
rake aborted! | |
An error has occurred, all later migrations canceled: | |
Mysql2::Error: Table 'dmcwiki_pages' already exists: CREATE TABLE `dmcwiki_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255) NOT NULL, `content` text NOT NULL, `published` tinyint(1) DEFAULT 0 NOT NULL, `topic_id` int(11) NOT NULL, `subtopic_id` int(11), `permalink` varchar(255) NOT NULL, `publish_version` varchar(255), `last_version` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB |