`
DerekMorgan
  • 浏览: 18709 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
在application_controller.rb 中使用rescue_from 可以完成大部分工作: 01 class ApplicationController < ActionController::Base02   03   def self.rescue_errors04     rescue_from Exception,                            :with => :render_error05     rescue_from Run
# autoload concerns module YourApp   class Application < Rails::Application     config.autoload_paths
在学习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_CERTIFICATE:certificate verify failed while accessing https://github.com/ryanb/cancan.git/info/refs   ...
  rails g controller test index show 运行haml出错   error  haml [not found]   在网站上搜到两种解决办法   1 在Gemfile中添加   gem 'haml-rails'   2 在Gemfile中添加   gem 'rails3-generators'
    首先,介绍这两个插件 rails.vim 和 nerdtree.vim。   rails.vim提供了常用的一些命令,可以帮助开发,例如:Rgenerate, Rake, Rfind,RTview等,很方便,也很实用。   nerdtree则能提供树形菜单,方便导航,也可以做bookmark。   fuz ...
Global site tag (gtag.js) - Google Analytics