First Letter: Spacing Class (p or m)
Second Letter: Direction/Position (v/h, t/l/r/b)
Third Letter: Size (s (small), m (medium), l (large)
Example:
pbs = Padding Bottom Small,
mb = Margin Bottom
class ApplicationController < ActionController::Base | |
#include Clearance::Controller | |
# Prevent CSRF attacks by raising an exception. | |
# For APIs, you may want to use :null_session instead. | |
protect_from_forgery with: :null_session, if: Proc.new { |c| c.request.format == 'application/json' } | |
before_filter :authenticate_user_from_token! | |
private | |
def authenticate_user_from_token! | |
authenticate_with_http_token do |token, options| |
get 'users/confirm', :to => "api/v1/users/confirmations#show", as: 'confirm' | |
# <%= confirm_url(@resource) %> as localhost:3000/users/confirm.1 (or whatever the id is). Any idea why? |
I'm all for letting people learn from my mistakes, that's pretty crucial. So, I'm going to write a blog post on things to consider when choosing your first job. For those who are lucky to have multiple options, it is kind of an important decision, because this first job is crucial for your professional growth and development. So what are factors you should take into consideration when choosing your first job and to come to a decision? Well, I'm about to let you know.
class Api::V1::Users::SessionsController < Devise::SessionsController | |
skip_before_filter :verify_authenticity_token, :only => [:create, :destroy] | |
skip_before_filter :verify_signed_out_user, only: :destroy | |
def check_current_user | |
if @user.signed_in? | |
render json: current_user, status: :ok | |
else | |
render json: {user: nil}, status: :ok | |
end |
defmodule API do | |
alias Utils | |
@base_url "https://class-search.nd.edu/reg/srch/ClassSearchServlet" | |
@doc """ | |
Initialize the initial page and everything. | |
""" | |
def initialize(page \\ :initial) do | |
API.Search.start_link(page) | |
end |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
events: [ | |
{ | |
title: 'Egghead Recording', | |
allDay: true, | |
date: Date.now(), | |
} |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Dynamic Components Example', | |
currentModal: null, | |
showModal: Ember.computed('currentModal', function() { | |
return !!this.get('currentModal'); | |
}), | |
actions: { | |
openModalA() { |