how to set up and use a Rails routes prefix

后端 未结 7 931
北海茫月
北海茫月 2021-02-05 07:39

When running rake routes I see:

 Prefix   Verb   URI Pattern                                       Controller#Action
 articles  GET    /articles(.:format)               


        
7条回答
  •  庸人自扰
    2021-02-05 08:07

    You can try in config.ru file

     map 'YOUR_PREFIX_HERE' do
       run Rails.application
     end
    

提交回复
热议问题