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
class AddTimestampsToProducts < ActiveRecord::Migration | |
def change_table | |
add_column(:products, :created_at, :datetime) | |
add_column(:products, :updated_at, :datetime) | |
end | |
end |
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
#js | |
//= require bootstrap-sprockets | |
#scss | |
@import "bootstrap-sprockets"; | |
@import "bootstrap"; |
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
group :development do | |
gem "better_errors" | |
gem "binding_of_caller" | |
gem "quiet_assets" | |
end |
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
@instructions = { | |
project_menu: [ | |
"'list' to list projects", | |
"'create' to create a new project", | |
"'rename' to rename a project", | |
"'delete' to delete a project", | |
"'edit' to edit a project" | |
], | |
task_menu: [ | |
"'list' to list tasks", |
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
class TodoApp < CommandLineApp | |
attr_reader :view, :model, :controller | |
require 'forwardable' | |
extend Forwardable | |
def initialize(input, output) | |
@input = input | |
@view = View.new(output, input) | |
@model = Model.new | |
@controller = Controller.new(model, view) | |
end |
NewerOlder