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
<%= f.text_area :label, :rows => 2%> | |
<%= field_set_tag 'Answers' do %> | |
<%= f.fields_for :answers do |af| %> | |
<%= af.text_field :label %> | |
<%= af.collection_select(:followup_id, f.object.children, :id, :label, :include_blank => true) %> | |
<%= af.link_to_remove 'X', :class => 'radius button'%> | |
<% end %> | |
<%= f.link_to_add "Add Answer", :answers%> |
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
require 'sass/plugin' | |
module Sass | |
module Rails | |
class TemplateHandler | |
class_attribute :default_format | |
self.default_format = Mime::CSS | |
def initialize | |
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
window.addEventListener "DOMContentLoaded", -> | |
body = $ "body" | |
canvas = $ "#canvas" | |
chalkboard = $ "#chalkboard" | |
close = $ "#close" | |
ledge = $ "#ledge" | |
lightswitch = $ "#lightswitch" | |
output = $ "#output" | |
shade = $ "#shade" | |
share = $ "#share" |
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
(function(Spine, $){ | |
var createCollection = function(model, record){ | |
var collection = model.setup(model.name, model.attributes); | |
collection.extend(Spine.Model.Ajax); | |
collection.extend({ | |
url: function(){ | |
return record.url() + "/" + this.name.toLowerCase() + "s" | |
} | |
}); | |
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
localhost:repos jacob$ which node | |
/usr/local/bin/node | |
localhost:repos jacob$ node -v | |
v0.4.7 | |
localhost:repos jacob$ which npm | |
/usr/local/bin/npm | |
localhost:repos jacob$ npm -v |
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 UsersController < ApplicationController | |
# GET /users | |
# GET /users.xml | |
# GET /users.fxml | |
def index | |
@users = User.find(:all) | |
respond_to do |format| | |
format.html # index.html.erb | |
format.xml { render :xml => @users } |