自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 rails3定制404和500错误

在application_controller.rb 中使用rescue_from 可以完成大部分工作:01 class ApplicationController < ActionController::Base02   03   def self.rescue_errors04     rescue_from Exception,                   ...

2011-06-10 20:38:19 111

原创 用concerns来管理models

# autoload concernsmodule YourApp  class Application < Rails::Application    config.autoload_paths += %W( #{config.root}/app/controllers/concerns #{config.root}/app/models/concer...

2011-06-10 11:07:16 185

原创 git clone出现SSL错误

在学习git的时候,发现不能使用git clone从github.com下载,报了个ssl错误。 Cloning into cancan...error: SSL certificate problem, verify that the CA cert is OK. Details:error:14090086:SSL routines:SSL3_GET_SERVER_CER...

2011-06-01 07:52:44 820

原创 rails haml

 rails g controller test index show 运行haml出错 error  haml [not found] 在网站上搜到两种解决办法 1 在Gemfile中添加 gem 'haml-rails' 2 在Gemfile中添加 gem 'rails3-generators'...

2011-05-24 04:38:27 131

vim---打造rails开发环境

   首先,介绍这两个插件 rails.vim 和 nerdtree.vim。  rails.vim提供了常用的一些命令,可以帮助开发,例如:Rgenerate, Rake, Rfind,RTview等,很方便,也很实用。  nerdtree则能提供树形菜单,方便导航,也可以做bookmark。 fuzzyfinder_textmate:提供类似testmate的模糊查...

2011-05-13 00:48:50 141

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除