|
|
|
|
A plugin to use Ext JS library easily on Rails.
Use "svn co" or "svn export" for installing method, because "plugin install" has a bug that fails to fetch all files named 'httpXXX'.
cd vendor/plugins svn co http://wota.jp/svn/rails/plugins/trunk/ext/
This plugin depends on following plugins.
ruby script/plugin install http://wota.jp/svn/rails/plugins/branches/stable/dsl_accessor/ ruby script/plugin install http://wota.jp/svn/rails/plugins/branches/stable/named_options/
Here, feel free to run plugin command, because these don't contain 'httpXXX' files.
Execute following lines in RAILS_ROOT directory.
wget http://www.yui-ext.com/deploy/ext-1.0-alpha3.zip unzip ext-1.0-alpha3.zip cd public ln -s ../ext-1.0-alpha3 ext
Now, you can see "public/ext/XXX" files.
"ApplicationHelper#ext_include" method includes all files needed for Ext. So you can easily prepare Ext environment by putting one line into your view files.
<%= ext_include %> |
Then, all you have to do is to pass Ext JS codes to "Ext.onReady" method as function.
Code:
"Kuun" is a slang word for 'hello' in Japanese. |
Result:
|
Ext has a nice pagination feature.
Just call "ext_paginate" method like "scaffold" in your controller!You need no rhtmls.Then visit its index action.
Code: your controller
args
|
Result: |
If you are well familiar to Ext, use :cm option for "Ext.grid.ColumnModel" and :ds for "Ext.data.Store".
Code: your controller
|
Result: |
Pagination is fine, but Scaffold is great :)
Although all CRUD operations are not supported yet in current version, "ext_paginate" recognizes :edit option that enables to edit column value in place and update it immediately by Ajax.
Code: your controller
|
Result: In place editdouble click or enter key. |
Result: Date or Datetime cellExt JS has date picker! |
look forward to the next release!
| JRuby | Rails | Berryz | ℃-ute | エッグ | jQuery |
| 前 | 2007年 4月 |
次 | ||||
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||
Can you change to use prototype.js instead of yui-utilities? Without prototype.js, we can not use RJS or such kinds of powerful Rails ways.
Is the Rails ext plugin still being actively developed? Thanks!
No, I'm not active about this plugin. I'm currently devoting myself to other things. Do you desire the "Tree" feature now? :)
I'm more interested more in the CRUD actions.
I'am interested by tree support. In SVN, there are several files related to tree support. Is it need lot of development to complete support ?
OK. I'll release next version soon, hopefully within less than a month.<br>The supported features are<br>* tree helper<br>* scaffold
Great !
supported Scaffold and Tree feature<br>http://wota.jp/ac/?date=20071227
kasdf