码迷,mamicode.com
首页 > 其他好文 > 详细

嵌套路由

时间:2018-10-01 01:06:59      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:size   show   resource   div   ack   class   sources   back   pre   

  resources :buyers do
    resources :invoices 
  end

 = link_to ‘Show‘, buyer_invoice_path(@buyer, invoice)
 = link_to ‘Edit‘, edit_buyer_invoice_path(@buyer, invoice)
 = link_to ‘Destroy‘, [@buyer, invoice], :method => :delete, :data => { :confirm => ‘Are you sure?‘ }
= link_to ‘Back‘, buyer_invoices_path(@buyer, @invoice)

 

嵌套路由

标签:size   show   resource   div   ack   class   sources   back   pre   

原文地址:https://www.cnblogs.com/znsongshu/p/9733865.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!