0
A
回答
0
使if user_signed_in?
及其对应的else
1个级别嵌套。这将解决这个问题。
并且不要忘记移动内容,例如link_to
也由1层嵌套。
相关问题
- 1. 如何在此if/else语句中添加if/else语句?
- 2. 如何在我的导航栏中创建if else语句?
- 3. 添加if-else语句会导致JavaScript停止工作
- 4. 在else之前退出datareader之前,在if-else语句中
- 5. if else if else语句(JS)
- 6. 为什么我的if语句跳过了我的else语句?
- 7. 使用if/else语句添加数字?
- 8. 为什么我的Java用于/ if/else语句输出复制
- 9. Powershell IF ELSE不会运行ELSE语句
- 10. if else语句的用法是什么?
- 11. If else语句
- 12. If/else语句
- 13. if else语句
- 14. 为什么添加边框会改变导航栏的位置?
- 15. 为什么我的if和else语句同时打印?
- 16. 为什么if和else语句在单次运行时执行?
- 17. 为什么我的if/else if语句不起作用?
- 18. 添加后退按钮到导航栏
- 19. 为什么我们在java中需要switch-case语句,如果我们已经有if-else if-else语句
- 20. “形” - if-else语句
- 21. jquery if else语句
- 22. Python if else语句
- 23. PHP if/else语句
- 24. if else语句php
- 25. IF ELSE语句php
- 26. if和else语句
- 27. Big if else语句
- 28. jquery if else语句
- 29. Oracle IF/ELSE语句
- 30. PHP if else语句
不要粘贴代码的图像。请在这里粘贴原始代码。 –