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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -