Skip to content

Instantly share code, notes, and snippets.

View flemdizzle's full-sized avatar

Steven Fleming flemdizzle

View GitHub Profile
json.array!(@students) do |student|
json.extract! student, :id, :name, :email, :phone, :location, :employment
json.url student_url(student, format: :json)
end
var FluffyRouter = Backbone.Router.extend({
routes: {
'seal panda bunny': 'update',
'*default': 'update'
},
update: function(){
var id = Backbone.history.fragment || 'bunny';
$('.view').hide();
$('#' + id).show();
this.navigate(id);
require 'faker'
output = []
dates = []
20.times do
output << Faker::Commerce.product_name
end
20.times do