0
나는 user_signed_in을 사용하려고합니까? index.html.slim 응용 프로그램/자산/템플릿 (보석 유증)/user_signed_in을 추가하는 방법은 무엇입니까? 템플릿 angularjs
내 코드 : 그것은 오류 보여
- unless user_signed_in?
li ng-click='login()'
a href='javascript:void(0)' translate='user.sign_in'
li ng-click='register()'
a href='javascript:void(0)' translate='user.sign_up'
- else
li
a href=profile_path(current_user.id)
: "underfine 방법 user_signed_in을" 당신이 conrtoller에서
before_action :authenticate_user!
누락처럼
정보 노선
destroy_user_session_path DELETE /users/sign_out(.:format) sessions#destroy
login_by_token_path GET /users/login_by_token/:token(.:format) api/v1#api_user2
user_password_path POST /password(.:format) front/passwords#create
new_user_password_path GET /password/new(.:format) front/passwords#new
cancel_user_registration_path GET /cancel(.:format) front/registrations#cancel
user_registration_path POST / front/registrations#create
new_user_registration_path GET /sign_up(.:format) front/registrations#new