I use rails as backend for mobile app. I tried including versions for the Api. I use devise for authentication and now the authenticate_user! method is not working and it shows me the error
NoMethodError (undefined method `authenticate_user!' for
#<Api::V1::CategoryController:0x00000103b95088>)
I do not know where i am doing wrong. please help me resolve this problem. Any help is appreciated.
Update:
module Api
module V1
class CategoryController < ApplicationController
before_filter :authenticate_user!