如何删除文件routes.rb中的一行ruby on rails [英] how to delete a line in file routes.rb ruby on rails

查看:31
本文介绍了如何删除文件routes.rb中的一行ruby on rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的文件 routes.rb

In my file routes.rb

namespace :admin do
    resources :albums, except: [:new, :edit, :destroy]
    resources :conversation_replies, except: [:new, :edit, :destroy]
    resources :authors, except: [:new, :edit, :destroy]
  end

现在,我想用 ruby​​ on rails 中的代码删除resources :authors, except: [:new, :edit, :destroy]"行

Now, I want delete line "resources :authors, except: [:new, :edit, :destroy]" by code in ruby on rails

请帮帮我.非常感谢

推荐答案

这是一个文本文件.它不是以编程方式生成的,而是要手动编辑的.您只需删除该行.打开编辑器,选择该行,然后按退格键或删除键.

It's a text file. It's not generated programmatically, it's meant to be edited by hand. You just delete the line. Open your editor, select the line, and hit the backspace or delete key.

这篇关于如何删除文件routes.rb中的一行ruby on rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆