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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -