在routes.rb中我有這樣的線ROR的link_to參數
resources :ideas
和在視圖中我有:
<%= link_to 'My ideas',ideas_path+'?id=my' %>
<%= link_to 'My ideas',ideas_path, :id=>'my' %>
第一行打開:http://localhost:2000/ideas?id=my ,而第二打開:http://localhost:2000/ideas
如何修復第二行? 再見
你是對的,謝謝。 – gisek