浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年12月21日

摘要: RequiringThere are essentially two ways to require activerecord-import:Using Bundler (default Rails 3 app uses this)Not using BundlerThese instructions only work for activerecord-import 0.2.0 or highe... 阅读全文
posted @ 2010-12-21 22:59 lexus 阅读(893) 评论(0) 推荐(0)

摘要: 今天是冬至,在京几年一直没有去,这回好容易在家,要去拜拜 阅读全文
posted @ 2010-12-21 22:20 lexus 阅读(253) 评论(0) 推荐(0)

摘要: Ubuntu Nginx 开机自启动2 次投票yuren分享于 18 天 前,4 条回复,132 次浏览Share|update-rc.d命令,是用来自动的升级System V类型初始化脚本,简单的讲就是,哪些东西是你想要系统在引导初始化的时候运行的,哪些是希望在关机或重启时停止的,可以用它来帮你设置。首先 我们需要在 /etc/init.d/目录下创建一个nginx的脚本文件,命令 vi ngi... 阅读全文
posted @ 2010-12-21 20:37 lexus 阅读(4241) 评论(0) 推荐(0)

摘要: config.action_controller.asset_host = "http://assets.example.com"http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.htmlUsing asset hostsBy default, Rails links to these assets on th... 阅读全文
posted @ 2010-12-21 20:01 lexus 阅读(446) 评论(0) 推荐(0)

摘要: 2010-08-02Rails gem 打包css javascript 提升网站性能 jammit 简介文章分类:Ruby编程推荐一个gem jammit 官方hub 安装 Ruby代码 geminstalljammitRuby代码 #environment.rbconfig.gem"jammit"Rails2 需要修改config/routes.rb添加路径,Rails 可不用 Ruby代码... 阅读全文
posted @ 2010-12-21 19:33 lexus 阅读(529) 评论(0) 推荐(0)

摘要: require "yaml"$config = YAML.load_file(File.join('config', 'database.yml')) 阅读全文
posted @ 2010-12-21 14:15 lexus 阅读(170) 评论(0) 推荐(0)

摘要: rails3 使用nifty文章分类:Ruby编程1. 在Gemfile中添加: gem 'nifty-generators'2. rails g nifty:layout3. rails g nifty:scaffold survey name:stringin railscast you'll see the blue background style scaffold file is don... 阅读全文
posted @ 2010-12-21 13:40 lexus 阅读(416) 评论(0) 推荐(0)

摘要: https://gist.github.com/111597使用capistrano同步本地和远程的mysqlTop 5 uses for Capistrano02 Oct 2008 | By Alex Young | capistrano programming ruby --This is a technical post about Capistrano, a tool that make... 阅读全文
posted @ 2010-12-21 12:09 lexus 阅读(425) 评论(0) 推荐(0)

摘要: http://ruby-toolbox.com/ 阅读全文
posted @ 2010-12-21 11:25 lexus 阅读(146) 评论(0) 推荐(0)

摘要: https://github.com/javan/wheneverwhenever enhanced cron on rails way初始 Getting started生成cron代码 ThewhenevercommandThis will simply show you your schedule.rb file converted to cron syntax. It does not r... 阅读全文
posted @ 2010-12-21 11:06 lexus 阅读(1010) 评论(2) 推荐(0)

摘要: Ruby中String类的类方法chomp的语法2007-04-25 09:06String.chomp ----------------------------------------------------------- String#chomp str.chomp(separator=$/) = new_str -------------------------------------... 阅读全文
posted @ 2010-12-21 10:27 lexus 阅读(6193) 评论(0) 推荐(0)