Skip to content

Instantly share code, notes, and snippets.

View willkessler's full-sized avatar

Will Kessler willkessler

View GitHub Profile
class BrandSubscriptionsController < ApplicationController
before_filter :require_login
def new
flash.clear
render :new, :layout => "brands"
end
def create
Rails.logger.info('___ agreed:' + params[:brand_subscription][:agreed_to_terms] + '<<')
@willkessler
willkessler / gist:6502419
Last active December 22, 2015 16:58
iron-router controller
// productView.html
<template name="productView">
{{title}}
</template>
// routes.js
Router.map(function () {
this.route('home', {
path: '/'
Template.leaderboard.events({ 'click input.inc': function () { Players.update(Session.get("selected_player"), {$inc: {score: 5}}); console.log(Session.get("sort_order")); }, 'click input.sort_order': func