将root重定向到rails 4中的命名路由

将root重定向到rails 4中的命名路由

我正在尝试使用routes.rb将我的www.example-app.com根目录重定向到www.example-app.com/app/dashboard.目前我正是这样做的: root to: redirect(/app/dashboard) 但是想使用命名路由来做,例如: get app/dashboard = accounts#dashboard, as: :account_

Ubuntu上配置Ruby on Rails框架及RubyMine IDE开发环境

Ubuntu上配置Ruby on Rails框架及RubyMine IDE开发环境

准备阶段的碎碎念在virtualbox安装过程中由于这样那样的原因,产生许多坑。坑1、关于终端,一定要使用启动器打开

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部