Skip to content

Instantly share code, notes, and snippets.

@RyanFriedman
Created March 9, 2012 02:28
Show Gist options
  • Save RyanFriedman/2004669 to your computer and use it in GitHub Desktop.
Save RyanFriedman/2004669 to your computer and use it in GitHub Desktop.
SampleApp::Application.routes.draw do
namespace :api do
resources :tokens, :only => [:create, :destroy]
end
end
## app/controllers/api/tokens_controller.rb
class Api::TokensController < ApplicationController
def create
end
def destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment