`
fiyuer
  • 浏览: 6348 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
Pretty blocks in Rails views   MVC: How to write controllers  
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: ...
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/ ...
[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 ...
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 ...
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 ...
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 ...
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 ...
Global site tag (gtag.js) - Google Analytics