`
太平洋1986
  • 浏览: 21065 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
ITEYE的人气大不如从前了!首页上的文章成月的不变!人都到哪去了呢?
进入安装目录下,打开etc/netbeans.conf,修改如下: netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true" 为: netbeans_default_options="-J-client -J-Xss2m - ...
在ruby中基本上有三种引入module的方式 一、在类定义中引入module后,module中的方法成为类的实例方法。         在类定义中用include引入module。        例如: module Base def test p "This is a instance method!" end end class Car include Base end Car.new.test => "This is a instance met ...
最好的Ruby On Rails教程 http://guides.rubyonrails.org/
在rails3模板中,默认会将输出的内容进行html编码,即在rails2中用到的h helper,如: <%=h xxx%> 如果要在rails3模板中,对输出内容进行html解码,需要用到raw helper,如下: <%=raw xxx%>
sudo ln -s /var/lib/gems/1.8/bin/bundle /usr/local/bin/bundle
rails 3.0.x  mysql2 0.3.x 执行rake db:create 报如下错误: [size=medium]WARNING: This version of mysql2 (0.3.2) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1 WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x[/size] 解决的方案是在Gemfile中,增 ...
1、将文件checkout到本地目录 svn checkout path(path 是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co 2、往版本库中添加新的文件 svn add file 例如:svn add test.php(添加test.php) svn add *.php(添加当前目录下所有的php文件) 3、将改动的文件提交到版本库 svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(如果选择了保持锁,就使用–no- unlock开关) 例如:svn c ...

递归删除.svn

find -name '.svn' |xargs rm -rf
1、svnadmin dump /var/www/svn/ehaohai > /tmp/ehaohai.dump 备份subversion的版本库,导出到/tmp/ehaohai.dump文件中 2、svnadmin create /var/www/svn/kimi 创建新的subversion版本库 3、svnadmin load /var/www/svn/kimi < /tmp/ehaohai.dump 将备份的dump文件迁移到新建的subversion版本库中
subversion在线教程:http://svndoc.iusesvn.com/svnbook/1.4/ 一、准备工作 1、svn的安装步骤:http://wiki.centos.org/HowTos/Subversion 2、etc/httpd/conf.d/subversion.conf 内容 <Location /repos>         DAV svn         SVNPath /var/www/svn/ehaohai         AuthType Basic         AuthName "Subversion repos"      ...
1、安装apache    sudo apt-get install apache2    打开浏览器,请求http://localhost,出现如下界面,证明安装成功   It works! This is the default web page for this server. The web server software is running but no content has been added, yet. 2、安装passenger和apache模块    sudo gem install passenger sudo passenger-install-apache2 ...
:Rake 这个好记 :Redit 任意文件,相对路径 :Rlog 日志文件 :Rpreview 打开浏览器,http://localhost:3000 :Rtags 生成一个tag,要求ctags :Rrefresh 刷新 :Rfind 查文件,可以不写.rb后缀 gf 这个命令超强,根据当前光标处内容跳转到文件 直接打开 :Rmodel :Rmigration :Robserver :Rfixtures :Runittest :Rcontroller :Rhelper :Rview :Rlayout :Rapi :Rfunctionaltest :Rstylesheet :Rjavascr ...
以前一直用netbeans在windows7下开发rails,速度很是个慢,最近准备把开发环境移到ubuntu下,短期内还是用netbeans(用习惯了)。很人多建议用vim作为rails的开发工具,说了种种优点,很是动心,经不住诱惑搭建了rails.vim。 参考这篇文章:http://www.iteye.com/topic/494254 例外多加了几个vim插件: AutoComplPop.vim   用于语法补全   参考:http://tenanchris.iteye.com/blog/621771 taglist.vim  按照方法等进行跳转 安装taglist.vim后,启动vim会 ...
rails环境从rails2升级到rails3后,用如下命令生成rails2的项目。命令如下: rails   _2.3.8_   dept_name
Global site tag (gtag.js) - Google Analytics