- 浏览: 6684 次
- 性别:
- 来自: 北京
最新评论
-
may小张:
看不懂!不是学这方面的语言!
functional test skeleton -
fiyuer:
onclick="Element.show('spi ...
apache+mongrel
文章列表
Pretty blocks in Rails views
MVC: How to write controllers
- 2008-07-14 15:57
- 浏览 642
- 评论(0)
namespace :test do
namespace :functionals do
desc "Generate functional testing skeleton"
task :generate => :environment do
dir = ENV['dir']
if dir.blank?
puts "Warning! \nNothing is done, please identify the controllers directory! \ne.g. rake test: ...
- 2008-03-28 16:23
- 浏览 908
- 评论(1)
Delete .svn files under current folder
find ./ -name ".svn" | xargs rm -Rf
ways to restart apache
sudo /sbin/service httpd restart
sudo /usr/local/apache2/bin/apachectl -k restart
http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/
...
- 2008-03-03 10:27
- 浏览 1035
- 评论(1)
[list]
Best place for BackgrounDRb documentation is the README file that comes with the plugin. Read it thoroughly before going anywhere else for documentation.
When passing arguments from Rails to BackgrounDRb workers, don’t pass huge ActiveRecord objects. Its asking for trouble. You can easily circ ...
- 2008-02-22 12:45
- 浏览 948
- 评论(0)
map.connect 'student/student_profile/signup' users/profiles/new
cards delete card_record
Export A MySQL Database:
# mysqldump -u username -ppassword database_name table_name> FILE.sql
Import A MySQL Database:
# mysql -u username -ppassword database_name < FILE.sql
VIM
:1,$s/^regex/to_be_rep ...
- 2008-02-15 12:13
- 浏览 631
- 评论(0)
1. rails 2.0
for nested resource, edit url helper is changed from parent_edit_child_path to edit_parent_child_path
http://blog.hasmanythrough.com/2006/4/3/polymorphic-through
has_many :through - The other side of polymorphic :through associations
http://api.rubyonrails.org/classes/ActiveRecord/As ...
- 2008-01-14 11:06
- 浏览 669
- 评论(0)
1. search a package
1) sudo apt-get udpate
2) sudo apt-cache search something
The "z" flag works with gzip, to either create a tar/gzipped archive:
tar -czvf archive.tgz files/
...or decompress a tar/gzipped archive:
tar -xzvf archive.tgz
To start the server, as root type:
/sbin/serv ...
- 2008-01-11 14:18
- 浏览 649
- 评论(0)
1. SVN
1) create a new project :
svn import -m 'new import' trainer http://svn.idapted.com/svn/projects/trainer
trainer doesn't need to exsit, svn will create it.
the svn url must be ../svn/..., cann't be ../browser/..
must have -m 'blabla'
After importing data, note that the original tree i ...
- 2008-01-04 16:45
- 浏览 1202
- 评论(0)