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 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 |
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
/** | |
* 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; |
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
console.log("Linked."); | |
// Dramatis Personae | |
var hobbits = [ | |
'Frodo Baggins', | |
'Samwise \'Sam\' Gamgee', | |
'Meriadoc \'Merry\' Brandybuck', | |
'Peregrin \'Pippin\' Took' | |
]; |
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
var solve = function () { | |
var items = $("#box span"), | |
firstItemCss = $(items[0]).css("background-color"), | |
group1 = [], | |
group2 = [], | |
resolve = false; | |
if ( items.length > 0 ){ | |
resolve = true; | |
} |
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
<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. |
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
/// <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); |
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
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); | |
} |