Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
fdjlsakf
@rails123
VIP
NO. 2540 / 2012-06-14

2 Topics / 4 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 控制器引用模型时就说方法不存在 at June 16, 2012

    AController 和 BController 及都没对@current_user作任何改变,又都是从 ApplicationController 导出,但@current_user在 AController 非空,在 BController 就变空了。

  • 控制器引用模型时就说方法不存在 at June 16, 2012

    在 ApplicationController < ActionController::Base @current_user = User.find_by_id(params[:user_id]) 里已得非空@current_user,且在并且在 AView <%= @current_user.idno %>已正常现示。

  • 控制器引用模型时就说方法不存在 at June 16, 2012

    在 ApplicationController < ActionController::Base @current_user = User.find_by_id(params[:user_id]) 里已得非空@current_user,且在并且在 AView <%= @current_user.idno %>已正常现示。

  • 用 scaffold 产生的控制器怎么不能继承父类 applicationcontroller 里的变量? at June 15, 2012

    不用 scaffold 产生的可以继承。

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English