您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. Ruby rails 页面跳转(render和redirect_to)

  2. Ruby代码 代码如下:if user.update_attributes(:password => params[:user][:password]) flash[:notice] = ‘密码修改完成’ redirect_to :action => ‘index’ else redirect_to :action => ‘change_pass’, :id => user end后来随手改了下第5行,把redirect_to改为render,居然就OK了。网上找了下才发
  3. 所属分类:其它

    • 发布日期:2021-01-02
    • 文件大小:52kb
    • 提供者:weixin_38658568