看板
[ Ruby ]
討論串[問題] RoR下如何使用select撈資料呢?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
自已打的問題自已解決. 我最後是用Ruby on rails的ProtoTypeHelper做到的. 方法如下:. 在PC的controller下. 新增一個brand anction, 傳入品牌id, 回傳屬該品牌的型號. def brand. # Is this an XmlHttpReques
(還有1112個字)
內容預覽:
環境:. Ruby 1.8.7 & Rails 2.2.2. 狀況:. 我在想用form_helper做到一件事, 動態撈資料. 例如:. class Brand < ActiveRecord::Base. has_many :PCs. end. class PC < ActiveRecord::B
(還有212個字)
首頁
上一頁
1
下一頁
尾頁