[問題] 傳已輸入的hash value

看板Ruby作者 (甚麼時候才等到妳)時間15年前 (2009/11/25 16:37), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
環境: Ruby 1.8.7 Rails 2.3.4 狀況: 假設在orders/new.html.erb中有一個customer_id的text_field, 另外裡面有一個連結會redirect_to :action => 'new',指回new.html.erb。 請問我如何能在refresh之後,還能保留已輸入過的customer_id? 我的想法是在連結裡傳入params[:order],可是應當怎麼傳? 望請賜教,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.49.79.39

11/25 17:17, , 1F
我會存在 flash 或 session 裡
11/25 17:17, 1F
文章代碼(AID): #1B3EpBG6 (Ruby)
文章代碼(AID): #1B3EpBG6 (Ruby)