Skip to content

Instantly share code, notes, and snippets.

View vcabansag's full-sized avatar

Vincent Cabansag vcabansag

View GitHub Profile
@arjunvenkat
arjunvenkat / devise.md
Last active November 20, 2016 19:47 — forked from raghubetina/devise.md

Authentication and Authorization with Devise

We will be using the [Devise gem][2] to help us get started with authentication (are you who you say you are?) and authorization (are you allowed to do/see this?).

Add sign-in/sign-out

  • Add gem 'devise' to your Gemfile and bundle
  • rails g devise:install

Devise will give you some setup instructions. We don't need to worry about most of them, but we do need to set a root URL. Usually, you will point the root URL to the index action of some important resource in your application: In config/routes.rb:

@nheinrich
nheinrich / gist:3941276
Created October 23, 2012 20:19
Deploy a middleman app to heroku
@jtallant
jtallant / pulling-and-pushing-to-git.md
Created June 14, 2012 20:39
Basic Unix + Pulling and Pushing to Git

UNIX Commands

pwd present working directory

ls list current directory contents

ls -la list current directory contents in long format and show hidden files

man <some unix command> Bring up the manual pages for a command. Type q to exit