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
import Backbone from 'backbone'; | |
import _ from 'lodash'; | |
const html = `<div class="book"><%= title %> :: <%= pages %></div>`; | |
const Book = Backbone.Model.extend({ | |
defaults: { | |
title: null, | |
pages: 0, | |
}, |
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
# custom_plan.rb | |
require 'zeus/rails' | |
class CustomPlan < Zeus::Rails | |
def server | |
require 'thin/server' | |
server = ::Thin::Server.new(::Rails.application, 3001) | |
server.start | |
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
Dir["../app/models/*.rb"].each do |file| | |
File.basename(file, ".rb").capitalize.delete_all | |
end |