ruby on rails - Display view with token authentication -
i'm trying figure out how display view token authentication. want able make screenshot of app without layout , token access in http request. don't want login user access views. use devise devise 3.5.10 , devise-token_authenticatable 0.4.10 rails 3. can access json request token authentication can't display views if user not logged in.
in applicationcontroller have line like
before_action :authenticate_user! for views want allow access if not logged in, need indicate in controller
class specialcontroller < applicationcontroller before_action :authenticate_user!, except: [:show] # or whatever actions choose
Comments
Post a Comment