- 博客(7)
- 资源 (3)
- 收藏
- 关注
How to delete rails log files
The following command will recursively delete any development.log file within your home directory: find ~/ -name development.log -exec /bin/rm -f {} \;
2008-03-21 15:43:07 112
Rake Commands List
rake db:fixtures:load # Load fixtures into the current environment's database. Load specific fixtures using FIXTURES=x,yrake db:migrate # Migrate the database through scripts...
2008-03-21 15:41:37 112
Rendering
Renders string and is useful for debugging purposes. render :inline => "time now is " Render the text. render :text => "Rock and Roll ain't noise pollutions!" Renders the action's te...
2008-03-21 15:39:40 125
FCKEditor with Mephisto
Plugging FCKEditor into Mephisto is very easy. Step 1: ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor Step 2:Put the following in the application.rhtml file. &l...
2008-03-21 15:31:53 88
标准化输入Flash信息
用了两个Help方法展示Flash信息: def display_standard_flashes(message = 'There were some problems with your submission:') if flash[:notice] flash_to_display, level = flash[:notice], 'notice' elsif f...
2008-03-21 15:13:40 72
rails fckeditor
fckeditor 现在版本是:0.4.3下载网址:http://rubyforge.org/projects/fckeditorp/下载安装包,到vender/plugin中,用rake fckeditor:install安装 使用方法请参考:http://zsbfree.is-programmer.com/show/655.html ...
2008-03-21 15:02:34 92
rails flash & flash.now
flash[:notice] is meant only for redirectaction, because the message is only cleared after at the end ofredirected view request. So if you don’t redirect the request, and youclick on the next reque...
2008-03-21 14:55:25 152
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人