Skip to content

Instantly share code, notes, and snippets.

class StudentsController < ApplicationController
before_action :set_student, only: [:show, :edit, :update, :destroy]
# GET /students
# GET /students.json
def index
@students = Student.all
end
# GET /students/1
@lupos
lupos / customRender.js
Created December 15, 2015 16:51
A sample of a custom render function for server side rendering
/**
* Override the Marionette.ItemView.render to help us with server-side renders
*
* @todo Add check to only do this if it's the inital render (use router + global to keep track)
*/
var oldRender = Marionette.ItemView.prototype.render;
Marionette.ItemView.prototype.render = function() {
var el;
console.log("Linked.");
// Dramatis Personae
var hobbits = [
'Frodo Baggins',
'Samwise \'Sam\' Gamgee',
'Meriadoc \'Merry\' Brandybuck',
'Peregrin \'Pippin\' Took'
];
var solve = function () {
var items = $("#box span"),
firstItemCss = $(items[0]).css("background-color"),
group1 = [],
group2 = [],
resolve = false;
if ( items.length > 0 ){
resolve = true;
}
<br/><b>ME:</b><br/>
Initial Question/Comment: emailed info needed to resubmit exchange. checking status
1:53:46 PM SystemSystem
NAME WITHELD. has joined this session!
1:53:46 PM SystemSystem
Connected with NAME WITHELD.
1:54:05 PM <br/><b>TECH:</b><br/>
Good Day.
1:54:08 PM <br/><b>TECH:</b><br/>
I will be more than happy to help you with it.
/// <summary>
/// PUT https://api.balancedpayments.com/v1/marketplaces/:marketplace_id/accounts/:account_id
/// curl https://api.balancedpayments.com/v1/marketplaces/TEST-MP365nSS4SNSrrlMeJXI7LUC/accounts \
/// -u 657c523c3b8e11e2a893026ba7cd33d0: \
/// </summary>
/// <param name="bankAccountUri">-d "bank_account_uri=/v1/bank_accounts/BA3HRAcWctcPl1Yy18lOXHUb"</param>
/// <returns></returns>
public Account AddBankToAccount(string bankAccountUri, string account_id)
{
Require.Argument("bank_account_uri", bankAccountUri);
public Account GetAccountByUri(string account_uri, string emailAddress)
{
Require.Argument("email_address", emailAddress);
var request = new RestRequest(Method.POST) { Resource = account_uri };
request.AddParameter("email_address", emailAddress, ParameterType.GetOrPost);
return Execute<Account>(request);
}