ruby - 关于rails中devise登录用户名的调用问题
高洛峰
高洛峰 2017-04-24 09:10:31
0
1
609

我用devise进行了注册,这个时候登录的用户名如何传到首页的尾部script中?

这后面应该怎么取值?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
巴扎黑
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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!