This file contains hidden or 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 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] + '<<') |
This file contains hidden or 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
// productView.html | |
<template name="productView"> | |
{{title}} | |
</template> | |
// routes.js | |
Router.map(function () { | |
this.route('home', { | |
path: '/' |
This file contains hidden or 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
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 |
NewerOlder