Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一种情况,我需要从 rails 应用程序中编辑 routes.rb 。需要一个想法如何去做。我是铁路初学者。
当您更改“routes.rb”中的某些内容时,您必须重新启动应用程序,所以这是非常糟糕的主意。您可以使用一个控制器/路由。该控制器可以重定向到其他一些控制器或执行某些操作,以便您可以在 routes.rb 中使用 ONE ROUTE。您可以在此处编写一些代码,我们将为您提供帮助。