Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Last active December 17, 2015 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save traviskroberts/3de909983a39e7a99d41 to your computer and use it in GitHub Desktop.
Save traviskroberts/3de909983a39e7a99d41 to your computer and use it in GitHub Desktop.
class Api::AccountsController < Api::BaseController
before_filter :require_user
respond_to :json
def index
respond_with current_user.accounts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment