gem install fastercsv
activescaffold
activescaffoldexport
mongrel无法启动问题解决方法:
The problem is that the enviroment.rb requires:
require 'helpers/view_helpers'
require 'helpers/controller_helpers'
these cause rails to load the helpers from any folder in path instead of
active_scaffold folder. Resulting in csv export plugin's helper extensions
being loaded before activescaffold loads its own files.
Using the following code instead should fix the problem.
require "#{File.dirname __FILE__}/lib/helpers/view_helpers"
require "#{File.dirname __FILE__}/lib/helpers/controller_helpers"
复制内容到剪贴板
代码:
#csv下载
config.actions.add :export
config.export.columns = [ :id, :name, :description]
config.export.default_deselected_columns = [ :description]
config.export.default_delimiter = ','
config.export.default_skip_header = false
config.export.force_quotes = true
config.export.show_form = true http://www.restatesman.com/static/calendar/
calendar_date_select 皮肤
environment.rb:
CalendarDateSelect.format = :hyphen_ampm
application.html.erb:
<%= calendar_date_select_includes %>
<script type="text/javascript">
_translations = {
"OK": "OK",
"Now": "現在",
"Today": "今日"
}
Date.weekdays = $w("日 月 火 水 木 金 土");
Date.months = $w("1 2 3 4 5 6 7 8 9 10 11 12");
</script>
http://dry.4thebusiness.com/?section=1
ruby script/plugin install
http://dhtml-calendar.googlecode.com/svn/trunk
svn checkout
http://activescaffoldtools.googlecode.com/svn/trunk/ activescaffoldtools-read-only
RecordSelect
http://www.railslodge.com/plugins/832-record-select
http://code.google.com/p/recordselect/wiki/Install