skip to Main Content

Memcached – ruby on rails api, how to authenticate user?

some controller: class Api::V1::AbilitiesController < API::V1::BaseController before_action :authenticate_api_v1_user! def index @resources = User.first.roles.map{|role| role.grants}.flatten! render json: @resources.group_by{|x| x.action} end end gemfile: source 'https://rubygems.org' ## Rails - Lock project at 4.2.x gem 'rails', '4.2.6' ## Database and ActiveRecord related gem 'pg'…

VIEW QUESTION
Back To Top
Search