我用devise进行了注册,这个时候登录的用户名如何传到首页的尾部script中?
这后面应该怎么取值?
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
before_action :verified_student private def verified_student authenticate_student! end
Here, authenticate_student will create a current_student, pointing to the current login student in students
Here, authenticate_student will create a current_student, pointing to the current login student in students