rails and ajax

0

瀏覽器中那隻看不見的手

rails 有些預設的 ajax 功能,參考 Ajax on Rails 一文,作來玩玩。

ajax screencast 1

跟著 How to paginate, sort and search a table with Ajax and Rails 一文繼續做

ajax screencast 2

更華麗一點

根據 Richard White 的 AjaxScaffold 3.1.0 released 例子做一半, 只有做比較簡單的 belongs_to 那一邊。

ajax scaffold screencast 1

發現 RadRails 0.6.3 某些 rhtml 會觸發 Exception,反應出 view 這一層的問題。ajax_scaffold 展現的華麗是否會帶來維護不易的邊際效應,有待繼續練習觀察。

ajax scaffold screencast 2

加上簡化輸出 HTML SELECT (view helper) 的功能。參閱 handy select functions 一文。

ajax scaffold screencast 3

Comments

(leave url/email »)

   Preview comment