rails页面跳转(render和redirect_to)
2009-05-17 13:15
274 查看
render :action=>"login",:layout=>"application" (提交方式)
redirect_to :controller=>"user",:action=>"login" (重定向方式)
redirect_to 可以指定controller,而render不可以
render 可以指定layout,redirect_to不可以
link:
http://wiisola.javaeye.com/blog/175915
参考:http://www.blogjava.net/fl1429/archive/2009/03/10/258886.html?opt=admin
redirect_to :controller=>"user",:action=>"login" (重定向方式)
redirect_to 可以指定controller,而render不可以
render 可以指定layout,redirect_to不可以
link:
http://wiisola.javaeye.com/blog/175915
参考:http://www.blogjava.net/fl1429/archive/2009/03/10/258886.html?opt=admin
相关文章推荐
- Ruby rails 页面跳转(render和redirect_to)
- Ruby rails 页面跳转(render和redirect_to)
- Ruby rails 页面跳转(render和redirect_to)
- 页面跳转之 redirect_to &render
- Ruby rails 页面跳转(render和redirect_to)
- rails中render 和 redirect_to的区别, each只能用在数组中,如果只有一个或者零个项,用each方法会报错undefined method `each' for #...
- Response.Redirect跳转到另外的页面,并用新窗口打开(from:http://stackoverflow.com/questions/104601/asp-net-response-redirect-to-new-window)
- Rails中render和redirect_to的区别
- 原创+转发:微信小程序navigator、redirectTo、switchTab几种页面跳转方式
- Response.Write 后连接Response.Redirect ,则Response.Write无法显示,直接跳转入Response.Redirect 的页面【转】
- 自定义PHP页面跳转函数redirect($url, $time = 0, $msg = '')
- Zend Framework 跳转方法(render, forward, redirect)区别与总结
- Ruby on Rails,通过建立页面导航链接实现页面跳转
- 微信小程序wx.redirectTo、wx.navigateTo跳转失败
- render & redirect_to
- 小程序redirectTo不跳转
- Ruby on rails开发从头来(windows)(三)-实现页面间的跳转(修正原版错误)
- 实现springmvc 的controller级别的跳转的方法 return "redirect:/news/to";
- 微信小程序出现wx.navigateTo页面不跳转问题的解决方法
- ASP.NET 中 POST 数据并跳转页面(译自 Redirect and POST in ASP.NET)