- Setup a new Rails app
- Initialize a local repository using git
- Create a new remote repository using GitHub
- Change README.rdoc
- Deploy to a cloud service - Heroku
- Ruby is installed (v 1.9.3)
- Rails is installed (v 3.2.3)
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
Data Down / Actions Up
Plain JSBin's
Ember Version Base JSBin's
require 'test/unit' | |
class ChangeMachine | |
# Returns an array indicating the quantity of | |
# each denomination required. | |
# [pennies, nickels, dimes, quarters] | |
def issue_coins(amount) | |
end | |
end |
This is a response for one of our apprentices who wanted to learn more about how structs work.
Part of this is a response and part of it a challenge. If you are only interested in the challenge clone the repo and run rake (more detailed instructions here).
TinyMCE is a javascript WYSIWYG editor that is highly configurable and has a ton of features and plugins. It integrates with jQuery and, with a bit of work, it can be integrated in your ember-cli app.
Step 1: Install TinyMCE:
bower install --save tinymce
Step 2: Import the required files into your app via broccoli. In order to do that you will need a plugin called broccoli-static-compiler
:
subl
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
init() { | |
this._super(...arguments); | |
$.mockjax({ | |
url: '/api/mock', | |
responseText: { | |
text: "someText" |
function ajax(url, options) { | |
return new Ember.RSVP.Promise(function (resolve, reject) { | |
options = options || {}; | |
options.url = url; | |
options.success = function (data) { | |
Ember.run(null, resolve, data); | |
}; | |
options.error = function () { |